Plugin Directory

Changeset 1145383


Ignore:
Timestamp:
04/25/2015 07:08:59 AM (11 years ago)
Author:
Ali.Dbg
Message:

update to version 2.4.3

Location:
wp-farsi
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-farsi/trunk/readme.txt

    r1143616 r1145383  
    4343
    4444== Changelog ==
     45
     46= 2.4.3 =
     47* Fixed bugs
    4548
    4649= 2.4.2 =
  • wp-farsi/trunk/wp-farsi.php

    r1143616 r1145383  
    66Author: Ali.Dbg 😉
    77Author URI: https://github.com/alidbg/wp-farsi
    8 Version: 2.4.2
     8Version: 2.4.3
    99License: GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html)
    1010*/
     
    4747}
    4848
    49 function wpfa_date_i18n_( $g, $f, $t ) {
    50     return date($f,$t);
    51 }
    52 
    5349function wpfa_apply_filters() {
    54     global $wp_query;
    5550    ini_set('default_charset', 'UTF-8');
    5651    ini_set('date.timezone', 'UTC');
     
    6459        'get_the_modified_date', 'the_modified_date', 'get_the_modified_time', 'the_modified_time', 'get_post_modified_time', 'number_format_i18n'
    6560    ) 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);
    7162    if (WPFA_NUMS === "on")
    7263        add_filter('number_format_i18n', 'numbers_fa');
     
    9687add_action('init', 'wpfa_init');
    9788add_action('admin_init', 'wpfa_admin');
    98 if(isset($wp_query) and is_feed() === false)
    9989add_action('wp_loaded', 'wpfa_apply_filters', 900);
    10090register_activation_hook( WPFA_FILE , 'wpfa_activate');
Note: See TracChangeset for help on using the changeset viewer.