Schema & Structured Data for WP & AMP - Version 1.9.49.1

Version Description

(15 Sept 2020) =

  • Fixed: Image size smaller than recommended" warnings in search console for the version 1.9.48 and above. #1200
Download this release

Release Info

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

Code changes from version 1.9.49 to 1.9.49.1

core/3rd-party/aqua_resizer.php CHANGED
@@ -141,7 +141,7 @@ if(!class_exists('Aq_Resize')) {
141
  }
142
 
143
  // Check if img path exists, and is an image indeed.
144
- if ( ! file_exists( $img_path ) or ! @getimagesize( $img_path ) ){
145
  // Return the Original CDN array
146
  return array (
147
  0 => $cdn_url_main,
@@ -152,7 +152,7 @@ if(!class_exists('Aq_Resize')) {
152
  // Get image info.
153
  $info = pathinfo( $img_path );
154
  $ext = $info['extension'];
155
- list( $orig_w, $orig_h ) = @getimagesize( $img_path );
156
 
157
  // Get image size after cropping.
158
  $dims = image_resize_dimensions( $orig_w, $orig_h, $width, $height, $crop );
@@ -175,7 +175,7 @@ if(!class_exists('Aq_Resize')) {
175
  throw new Aq_Exception('Unable to resize image because image_resize_dimensions() failed');
176
  }
177
  // Else check if cache exists.
178
- elseif ( file_exists( $destfilename ) && @getimagesize( $destfilename ) ) {
179
  $img_url = "{$upload_url}{$dst_rel_path}-{$suffix}.{$ext}";
180
  }
181
  // Else, we resize the image and return the new resized image url.
@@ -329,7 +329,10 @@ if(!function_exists('saswp_aq_resize')) {
329
 
330
  }
331
 
332
- }
 
 
 
333
  else {
334
  $aq_resize = Aq_Resize::getInstance();
335
  return $aq_resize->process( $url, $width, $height, $crop, $single, $upscale );
141
  }
142
 
143
  // Check if img path exists, and is an image indeed.
144
+ if ( ! file_exists( $img_path ) or ! getimagesize( $img_path ) ){
145
  // Return the Original CDN array
146
  return array (
147
  0 => $cdn_url_main,
152
  // Get image info.
153
  $info = pathinfo( $img_path );
154
  $ext = $info['extension'];
155
+ list( $orig_w, $orig_h ) = getimagesize( $img_path );
156
 
157
  // Get image size after cropping.
158
  $dims = image_resize_dimensions( $orig_w, $orig_h, $width, $height, $crop );
175
  throw new Aq_Exception('Unable to resize image because image_resize_dimensions() failed');
176
  }
177
  // Else check if cache exists.
178
+ elseif ( file_exists( $destfilename ) && getimagesize( $destfilename ) ) {
179
  $img_url = "{$upload_url}{$dst_rel_path}-{$suffix}.{$ext}";
180
  }
181
  // Else, we resize the image and return the new resized image url.
329
 
330
  }
331
 
332
+ }
333
+ elseif( (function_exists('fifu_activate') || is_plugin_active('fifu-premium/fifu-premium.php')) && function_exists('fifu_amp_url') ){
334
+ return fifu_amp_url($url, $width, $height);
335
+ }
336
  else {
337
  $aq_resize = Aq_Resize::getInstance();
338
  return $aq_resize->process( $url, $width, $height, $crop, $single, $upscale );
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.5
6
- Stable tag: 1.9.49
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -121,6 +121,10 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
121
 
122
  == Changelog ==
123
 
 
 
 
 
124
  = 1.9.49 (03 Sept 2020) =
125
 
126
  * Fixed: The property 0 is not recognized by Google for an object of type ImageObject. #1188
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.5
6
+ Stable tag: 1.9.49.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
121
 
122
  == Changelog ==
123
 
124
+ = 1.9.49.1 (15 Sept 2020) =
125
+
126
+ * Fixed: Image size smaller than recommended" warnings in search console for the version 1.9.48 and above. #1200
127
+
128
  = 1.9.49 (03 Sept 2020) =
129
 
130
  * Fixed: The property 0 is not recognized by Google for an object of type ImageObject. #1188
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.49
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.49');
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.49.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.49.1');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));