Changeset 1145383
- Timestamp:
- 04/25/2015 07:08:59 AM (11 years ago)
- Location:
- wp-farsi
- Files:
-
- 6 added
- 2 edited
-
tags/2.4.3 (added)
-
tags/2.4.3/index.php (added)
-
tags/2.4.3/license.html (added)
-
tags/2.4.3/pdate.php (added)
-
tags/2.4.3/wp-farsi.php (added)
-
tags/2.4.3/wpfa_admin.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-farsi.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-farsi/trunk/readme.txt
r1143616 r1145383 43 43 44 44 == Changelog == 45 46 = 2.4.3 = 47 * Fixed bugs 45 48 46 49 = 2.4.2 = -
wp-farsi/trunk/wp-farsi.php
r1143616 r1145383 6 6 Author: Ali.Dbg 😉 7 7 Author URI: https://github.com/alidbg/wp-farsi 8 Version: 2.4. 28 Version: 2.4.3 9 9 License: GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html) 10 10 */ … … 47 47 } 48 48 49 function wpfa_date_i18n_( $g, $f, $t ) {50 return date($f,$t);51 }52 53 49 function wpfa_apply_filters() { 54 global $wp_query;55 50 ini_set('default_charset', 'UTF-8'); 56 51 ini_set('date.timezone', 'UTC'); … … 64 59 'get_the_modified_date', 'the_modified_date', 'get_the_modified_time', 'the_modified_time', 'get_post_modified_time', 'number_format_i18n' 65 60 ) as $i) remove_all_filters($i); 66 if(isset($wp_query) and is_feed() === false) 67 add_filter('date_i18n', 'wpfa_date_i18n', 10, 3); 68 else 69 add_filter('date_i18n', 'wpfa_date_i18n_', 10, 3); 70 61 add_filter('date_i18n', 'wpfa_date_i18n', 10, 3); 71 62 if (WPFA_NUMS === "on") 72 63 add_filter('number_format_i18n', 'numbers_fa'); … … 96 87 add_action('init', 'wpfa_init'); 97 88 add_action('admin_init', 'wpfa_admin'); 98 if(isset($wp_query) and is_feed() === false)99 89 add_action('wp_loaded', 'wpfa_apply_filters', 900); 100 90 register_activation_hook( WPFA_FILE , 'wpfa_activate');
Note: See TracChangeset
for help on using the changeset viewer.