Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hexalinx

    (@hexalinx)

    همون افزونه ای که تو خود مخزن وردپرس هست.
    این محتوای ابتدای فایل fixes-dates.php هستش
    global $wpp_settings;

    if (get_locale() == ‘fa_IR’ && $wpp_settings[‘persian_date’] != ‘disable’) {
    add_filter(‘the_time’, ‘wpp_fix_post_time’, 10, 2);
    add_filter(‘the_date’, ‘wpp_fix_post_date’, 10, 2);
    add_filter(‘get_the_time’, ‘wpp_fix_post_date’, 10, 2);
    add_filter(‘get_the_date’, ‘wpp_fix_post_date’, 10, 2);
    add_filter(‘get_comment_time’, ‘wpp_fix_comment_time’, 10, 2);
    add_filter(‘get_comment_date’, ‘wpp_fix_comment_date’, 10, 2);
    add_filter(‘get_post_modified_time’, ‘wpp_fix_post_modified_time’, 10, 3);
    add_filter(‘date_i18n’, ‘wpp_fix_i18n’, 10, 4);
    add_filter(‘wp_date’, ‘wpp_fix_i18n’, 10, 4);
    }

    فایل disable.php هم کلا متفاوته

    Thread Starter hexalinx

    (@hexalinx)

    سلام. ممنون از شما.
    تو نسخه ایی که من استفاده می‌کنم
    wp_date
    به جای
    date_i18n
    قرار گرفته (البته هر دو وجود داره) و مشکلی تو نمایش تاریخ نیست. و فقط زمانی که debug فعال هست به صورت notice وجود داره.
    سوال من هم دقیقا در مورد همون notice و روش حلش بود

Viewing 2 replies - 1 through 2 (of 2 total)