Schema & Structured Data for WP & AMP - Version 1.9.25.1

Version Description

(5 Feb 2020) =

  • Fixed: Fatal error: Cannot use isset() on the result of an expression( you can use "null !==expression" instead) #768
Download this release

Release Info

Developer magazine3
Plugin Icon 128x128 Schema & Structured Data for WP & AMP
Version 1.9.25.1
Comparing to
See all releases

Code changes from version 1.9.25 to 1.9.25.1

modules/reviews/reviews_service.php CHANGED
@@ -699,20 +699,16 @@ class saswp_reviews_service {
699
 
700
  case 'lowest':
701
 
702
- usort($collection, function($a, $b) {
703
- if(isset(a['saswp_review_rating'])){
704
- return $a['saswp_review_rating'] - $b['saswp_review_rating'];
705
- }
706
  });
707
 
708
  break;
709
 
710
  case 'highest':
711
 
712
- usort($collection, function($a, $b) {
713
- if(isset($a['saswp_review_rating'])){
714
- return $a['saswp_review_rating'] - $b['saswp_review_rating'];
715
- }
716
 
717
  });
718
 
@@ -723,10 +719,8 @@ class saswp_reviews_service {
723
  case 'newest':
724
  case 'recent':
725
 
726
- usort($collection, function($a, $b) {
727
- if(isset($a['saswp_review_date'])){
728
- return strtotime($a['saswp_review_date']) - strtotime($b['saswp_review_date']);
729
- }
730
 
731
  });
732
 
@@ -736,10 +730,8 @@ class saswp_reviews_service {
736
 
737
  case 'oldest':
738
 
739
- usort($collection, function($a, $b) {
740
- if(isset($a['saswp_review_date'])){
741
- return strtotime($a['saswp_review_date']) - strtotime($b['saswp_review_date']);
742
- }
743
  });
744
 
745
  break;
699
 
700
  case 'lowest':
701
 
702
+ usort($collection, function($a, $b) {
703
+ return $a['saswp_review_rating'] - $b['saswp_review_rating'];
 
 
704
  });
705
 
706
  break;
707
 
708
  case 'highest':
709
 
710
+ usort($collection, function($a, $b) {
711
+ return $a['saswp_review_rating'] - $b['saswp_review_rating'];
 
 
712
 
713
  });
714
 
719
  case 'newest':
720
  case 'recent':
721
 
722
+ usort($collection, function($a, $b) {
723
+ return strtotime($a['saswp_review_date']) - strtotime($b['saswp_review_date']);
 
 
724
 
725
  });
726
 
730
 
731
  case 'oldest':
732
 
733
+ usort($collection, function($a, $b) {
734
+ return strtotime($a['saswp_review_date']) - strtotime($b['saswp_review_date']);
 
 
735
  });
736
 
737
  break;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: magazine3
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
- Stable tag: 1.9.25
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -118,6 +118,10 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
118
 
119
  == Changelog ==
120
 
 
 
 
 
121
  = 1.9.25 (1 Feb 2020) =
122
 
123
  * Fixed: User can not select to a specific post tag in placement section #751
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.3
6
+ Stable tag: 1.9.25.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
118
 
119
  == Changelog ==
120
 
121
+ = 1.9.25.1 (5 Feb 2020) =
122
+
123
+ * Fixed: Fatal error: Cannot use isset() on the result of an expression( you can use "null !==expression" instead) #768
124
+
125
  = 1.9.25 (1 Feb 2020) =
126
 
127
  * Fixed: User can not select to a specific post tag in placement section #751
structured-data-for-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
- Version: 1.9.25
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
@@ -13,7 +13,7 @@ License: GPL2
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
- define('SASWP_VERSION', '1.9.25');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
+ Version: 1.9.25.1
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
+ define('SASWP_VERSION', '1.9.25.1');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));