Plugin Directory

Changeset 2010794


Ignore:
Timestamp:
01/11/2019 08:32:56 PM (7 years ago)
Author:
salemi
Message:

bugfix

Location:
wp-persian/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-persian/trunk/includes/class-wpp-hooks.php

    r1913092 r2010794  
    169169
    170170        wp_enqueue_script('wp-persian', WPP_URL . 'assets/js/wp-persian.js');
     171        //wp_enqueue_script('wpp-wordpress5', WPP_URL . 'assets/js/wordpress5.js');
    171172
    172173
     
    251252    {
    252253        global $wpdb,$wp_locale;
     254
    253255        for ($i=1;$i<=12;$i++) {
    254256            $wp_locale->month[str_pad(strval($i),2,'0',STR_PAD_LEFT)] = wpp_jmonth_name($i);
    255         }
    256 
    257             $months = $wpdb->get_results( $wpdb->prepare( "
     257            $wp_locale->month_abbrev[wpp_jmonth_name($i)] = wpp_jmonth_name($i);
     258        }
     259
     260
     261        $months = $wpdb->get_results( $wpdb->prepare( "
    258262            SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month, DAY( post_date ) as day
    259263            FROM $wpdb->posts
    260264            WHERE post_type = %s
    261             ORDER BY post_date DESC
    262         ", 'attachment' ) );
     265            ORDER BY post_date DESC", 'attachment' ) );
    263266        $pre_date='';
    264267        foreach ( $months as $k=>$month_year ) {
  • wp-persian/trunk/readme.txt

    r1995530 r2010794  
    44Tags: persian, farsi, jalali, date, calendar, iran, ltr, rtl, woocommerce, shamsi, فارسی, تقویم, شمسی, هجری شمسی, افزونه, جلالی, میلادی, پارسی, ایران, ووکامرس, فروشگاه
    55Requires at least: 4.0
    6 Tested up to: 4.9.9
    7 Stable tag: 3.2.3
     6Tested up to: 5.0.3
     7Stable tag: 3.2.4
    88License: GPL2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.