Google Pagespeed Insights - Version 3.0.2

Version Description

  • Fixed bug introduced in v3.0.1 effecting servers running PHP 5.4 where a PHP error is produced while trying to perform actions in the plugin like saving options
Download this release

Release Info

Developer mattkeys
Plugin Icon 128x128 Google Pagespeed Insights
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

classes/class-GPI-Actions.php CHANGED
@@ -491,7 +491,9 @@ class GPI_Actions
491
  );
492
  }
493
 
494
- if ( empty( $this->bulk_pages ) && ( isset( $_GET['snapshot_id'] ) && ! empty( intval( $_GET['snapshot_id'] ) ) ) ) {
 
 
495
  $this->bulk_pages = array( intval( $_GET['snapshot_id'] ) );
496
  }
497
 
491
  );
492
  }
493
 
494
+ $snapshot_id = isset( $_GET['snapshot_id'] ) ? intval( $_GET['snapshot_id'] ) : false;
495
+
496
+ if ( empty( $this->bulk_pages ) && ! empty( $snapshot_id ) ) {
497
  $this->bulk_pages = array( intval( $_GET['snapshot_id'] ) );
498
  }
499
 
google-pagespeed-insights.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Pagespeed Insights
4
  Plugin URI: http://mattkeys.me
5
  Description: Google Pagespeed Insights
6
  Author: Matt Keys
7
- Version: 3.0.1
8
  Author URI: http://mattkeys.me
9
  */
10
 
4
  Plugin URI: http://mattkeys.me
5
  Description: Google Pagespeed Insights
6
  Author: Matt Keys
7
+ Version: 3.0.2
8
  Author URI: http://mattkeys.me
9
  */
10
 
readme.txt CHANGED
@@ -136,6 +136,9 @@ Google Pagespeed Insights requires a Google API Key. Keys are free and can be ob
136
 
137
  == Changelog ==
138
 
 
 
 
139
  = 3.0.1 =
140
  * Added snapshot comments to the view snapshot / compare snapshot templates
141
  * Fixed bug with snapshot report type label reading 'both' when it should read either desktop or mobile
@@ -198,6 +201,9 @@ Google Pagespeed Insights requires a Google API Key. Keys are free and can be ob
198
 
199
  == Upgrade Notice ==
200
 
 
 
 
201
  = 3.0.1 =
202
  * Added snapshot comments to the view snapshot / compare snapshot templates
203
  * Fixed bug with snapshot report type label reading 'both' when it should read either desktop or mobile
136
 
137
  == Changelog ==
138
 
139
+ = 3.0.2 =
140
+ * Fixed bug introduced in v3.0.1 effecting servers running PHP 5.4 where a PHP error is produced while trying to perform actions in the plugin like saving options
141
+
142
  = 3.0.1 =
143
  * Added snapshot comments to the view snapshot / compare snapshot templates
144
  * Fixed bug with snapshot report type label reading 'both' when it should read either desktop or mobile
201
 
202
  == Upgrade Notice ==
203
 
204
+ = 3.0.2 =
205
+ * Fixed bug introduced in v3.0.1 effecting servers running PHP 5.4 where a PHP error is produced while trying to perform actions in the plugin like saving options
206
+
207
  = 3.0.1 =
208
  * Added snapshot comments to the view snapshot / compare snapshot templates
209
  * Fixed bug with snapshot report type label reading 'both' when it should read either desktop or mobile