Version Description
- Fixed bug where WordPress heartbeat API filter function failed to return properly
- Added additional options for max runtime to support scenarios where even 60 seconds was over the server max run time
Download this release
Release Info
Developer | mattkeys |
Plugin | Google Pagespeed Insights |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.4
- classes/class-GPI-Admin.php +1 -1
- google-pagespeed-insights.php +1 -1
- readme.txt +8 -0
- templates/options.php +4 -1
classes/class-GPI-Admin.php
CHANGED
@@ -676,7 +676,7 @@ class GPI_Admin
|
|
676 |
public function progress_heartbeat( $response, $data )
|
677 |
{
|
678 |
if ( ! isset( $data['gpi_heartbeat'] ) || 'progress' != $data['gpi_heartbeat'] ) {
|
679 |
-
return;
|
680 |
}
|
681 |
|
682 |
$progress = get_option( 'gpi_progress' );
|
676 |
public function progress_heartbeat( $response, $data )
|
677 |
{
|
678 |
if ( ! isset( $data['gpi_heartbeat'] ) || 'progress' != $data['gpi_heartbeat'] ) {
|
679 |
+
return $response;
|
680 |
}
|
681 |
|
682 |
$progress = get_option( 'gpi_progress' );
|
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.
|
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.4
|
8 |
Author URI: http://mattkeys.me
|
9 |
*/
|
10 |
|
readme.txt
CHANGED
@@ -136,6 +136,10 @@ Google Pagespeed Insights requires a Google API Key. Keys are free and can be ob
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
|
|
139 |
= 3.0.3 =
|
140 |
* Fixed bug where Maximum Script Run Time option could not be set to "No Limit" after previously being set to a higher value
|
141 |
|
@@ -204,6 +208,10 @@ Google Pagespeed Insights requires a Google API Key. Keys are free and can be ob
|
|
204 |
|
205 |
== Upgrade Notice ==
|
206 |
|
|
|
|
|
|
|
|
|
207 |
= 3.0.3 =
|
208 |
* Fixed bug where Maximum Script Run Time option could not be set to "No Limit" after previously being set to a higher value
|
209 |
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 3.0.4 =
|
140 |
+
* Fixed bug where WordPress heartbeat API filter function failed to return properly
|
141 |
+
* Added additional options for max runtime to support scenarios where even 60 seconds was over the server max run time
|
142 |
+
|
143 |
= 3.0.3 =
|
144 |
* Fixed bug where Maximum Script Run Time option could not be set to "No Limit" after previously being set to a higher value
|
145 |
|
208 |
|
209 |
== Upgrade Notice ==
|
210 |
|
211 |
+
= 3.0.4 =
|
212 |
+
* Fixed bug where WordPress heartbeat API filter function failed to return properly
|
213 |
+
* Added additional options for max runtime to support scenarios where even 60 seconds was over the server max run time
|
214 |
+
|
215 |
= 3.0.3 =
|
216 |
* Fixed bug where Maximum Script Run Time option could not be set to "No Limit" after previously being set to a higher value
|
217 |
|
templates/options.php
CHANGED
@@ -181,6 +181,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
181 |
<p><label for="max_run_time"><?php _e( 'Maximum Script Run Time', 'gpagespeedi' ); ?>:</label></p>
|
182 |
<select name="max_run_time" id="max_run_time">
|
183 |
<option value="0" <?php selected( $this->gpi_options['max_run_time'], 0 ); ?>><?php _e( 'No Limit', 'gpagespeedi' ); ?></option>
|
|
|
|
|
|
|
184 |
<option value="60" <?php selected( $this->gpi_options['max_run_time'], 60 ); ?>><?php _e( '60 Seconds', 'gpagespeedi' ); ?></option>
|
185 |
<option value="90" <?php selected( $this->gpi_options['max_run_time'], 90 ); ?>><?php _e( '90 Seconds', 'gpagespeedi' ); ?></option>
|
186 |
<option value="120" <?php selected( $this->gpi_options['max_run_time'], 120 ); ?>><?php _e( '120 Seconds', 'gpagespeedi' ); ?></option>
|
@@ -189,7 +192,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
189 |
</select>
|
190 |
<p class="description">
|
191 |
<?php _e( 'Some web hosting providers have limits on script runtime that cannot be overridden. If your scans do not finish completely and changing the Maximum Execution Time does not resolve the problem, this setting may help. Once the specified run time is reached a new scan process will automatically start.', 'gpagespeedi' ); ?>
|
192 |
-
<?php _e( 'It is best to find the largest value that still allows the script to complete successfully. Test first at
|
193 |
</p>
|
194 |
|
195 |
<p><label for="sleep_time"><?php _e( 'Report Throttling Delay Time', 'gpagespeedi' ); ?>:</label></p>
|
181 |
<p><label for="max_run_time"><?php _e( 'Maximum Script Run Time', 'gpagespeedi' ); ?>:</label></p>
|
182 |
<select name="max_run_time" id="max_run_time">
|
183 |
<option value="0" <?php selected( $this->gpi_options['max_run_time'], 0 ); ?>><?php _e( 'No Limit', 'gpagespeedi' ); ?></option>
|
184 |
+
<option value="15" <?php selected( $this->gpi_options['max_run_time'], 15 ); ?>><?php _e( '15 Seconds', 'gpagespeedi' ); ?></option>
|
185 |
+
<option value="30" <?php selected( $this->gpi_options['max_run_time'], 30 ); ?>><?php _e( '30 Seconds', 'gpagespeedi' ); ?></option>
|
186 |
+
<option value="45" <?php selected( $this->gpi_options['max_run_time'], 45 ); ?>><?php _e( '45 Seconds', 'gpagespeedi' ); ?></option>
|
187 |
<option value="60" <?php selected( $this->gpi_options['max_run_time'], 60 ); ?>><?php _e( '60 Seconds', 'gpagespeedi' ); ?></option>
|
188 |
<option value="90" <?php selected( $this->gpi_options['max_run_time'], 90 ); ?>><?php _e( '90 Seconds', 'gpagespeedi' ); ?></option>
|
189 |
<option value="120" <?php selected( $this->gpi_options['max_run_time'], 120 ); ?>><?php _e( '120 Seconds', 'gpagespeedi' ); ?></option>
|
192 |
</select>
|
193 |
<p class="description">
|
194 |
<?php _e( 'Some web hosting providers have limits on script runtime that cannot be overridden. If your scans do not finish completely and changing the Maximum Execution Time does not resolve the problem, this setting may help. Once the specified run time is reached a new scan process will automatically start.', 'gpagespeedi' ); ?>
|
195 |
+
<?php _e( 'It is best to find the largest value that still allows the script to complete successfully. Test first at 30 seconds, then raise the value to 45 if your test is successful. Continue until you find the maximum runtime your host allows.', 'gpagespeedi' ); ?>
|
196 |
</p>
|
197 |
|
198 |
<p><label for="sleep_time"><?php _e( 'Report Throttling Delay Time', 'gpagespeedi' ); ?>:</label></p>
|