Parsi Date - Version 1.3

Version Description

Download this release

Release Info

Developer man4toman
Plugin Icon Parsi Date
Version 1.3
Comparing to
See all releases

Code changes from version 1.2 to 1.3

Files changed (2) hide show
  1. readme.txt +1 -1
  2. wp-parsidate.php +4 -5
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://forum.wp-parsi.com/
4
  Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl
5
  Requires at least: 3.6
6
  Tested up to: 3.8
7
- Stable tag: 1.2
8
 
9
  Persian package builder for WordPress, Full RTL and Shamsi(Jalali) date
10
 
4
  Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl
5
  Requires at least: 3.6
6
  Tested up to: 3.8
7
+ Stable tag: 1.3
8
 
9
  Persian package builder for WordPress, Full RTL and Shamsi(Jalali) date
10
 
wp-parsidate.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  /*
4
  Plugin Name: WP-Parsidate
5
- Version: 1.2
6
  Author: Mobin Ghasempoor
7
  Author URI: http://wp-parsi.com/
8
  Plugin URI: http://forum.wp-parsi.com/
@@ -300,9 +300,8 @@ function get_pdpermalink($perma, $post,$leavename = false)
300
  if ($cats)
301
  {
302
  usort($cats, '_usort_terms_by_ID');
303
- $category_object = get_term( $category_object, 'category' );
304
- $category = $category_object->slug;
305
- if ( $parent = $category_object->parent )
306
  $category = get_category_parents($parent, false, '/', true) . $category;
307
  }
308
  if (empty($category))
@@ -516,7 +515,7 @@ function wp_admin_posts_where($where)
516
  if( isset($_GET['mfa']) and $_GET['mfa'] != '0' )
517
  {
518
  $wp_query->query_vars['m'] = $_GET['mfa'];
519
- $where = wpb_posts_where($where);
520
  }
521
  return $where;
522
  }
2
 
3
  /*
4
  Plugin Name: WP-Parsidate
5
+ Version: 1.3
6
  Author: Mobin Ghasempoor
7
  Author URI: http://wp-parsi.com/
8
  Plugin URI: http://forum.wp-parsi.com/
300
  if ($cats)
301
  {
302
  usort($cats, '_usort_terms_by_ID');
303
+ $category = $cats[0]->slug;
304
+ if ( $parent = $cats[0]->parent )
 
305
  $category = get_category_parents($parent, false, '/', true) . $category;
306
  }
307
  if (empty($category))
515
  if( isset($_GET['mfa']) and $_GET['mfa'] != '0' )
516
  {
517
  $wp_query->query_vars['m'] = $_GET['mfa'];
518
+ $where = wppd_posts_where($where);
519
  }
520
  return $where;
521
  }