Hummingbird Page Speed Optimization - Version 1.6.2

Version Description

( 2017-10-02 ) = - Fix: API spamming issue

Download this release

Release Info

Developer vanyukov
Plugin Icon 128x128 Hummingbird Page Speed Optimization
Version 1.6.2
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.2

core/class-installer.php CHANGED
@@ -193,6 +193,10 @@ if ( ! class_exists( 'WP_Hummingbird_Installer' ) ) {
193
  self::upgrade_1_5_5();
194
  }
195
 
 
 
 
 
196
  update_site_option( 'wphb_version', WPHB_VERSION );
197
  } // End if().
198
  }
@@ -359,5 +363,14 @@ if ( ! class_exists( 'WP_Hummingbird_Installer' ) ) {
359
  wphb_clear_minification_cache( false );
360
  }
361
 
 
 
 
 
 
 
 
 
 
362
  }
363
- }
193
  self::upgrade_1_5_5();
194
  }
195
 
196
+ if ( version_compare( $version, '1.6.2', '<' ) ) {
197
+ self::upgrade_1_6_2();
198
+ }
199
+
200
  update_site_option( 'wphb_version', WPHB_VERSION );
201
  } // End if().
202
  }
363
  wphb_clear_minification_cache( false );
364
  }
365
 
366
+ private static function upgrade_1_6_2() {
367
+ // Update API schedules.
368
+ $options = wphb_get_settings();
369
+ $email_time = explode( ':', $options['email-time'] );
370
+ $email_time[1] = sprintf( '%02d', mt_rand( 0, 59 ) );
371
+ $options['email-time'] = implode( ':', $email_time );
372
+ wphb_update_settings( $options );
373
+ }
374
+
375
  }
376
+ } // End if().
helpers/wp-hummingbird-helpers-core.php CHANGED
@@ -710,7 +710,7 @@ function wphb_get_days_of_week() {
710
  function wphb_get_times() {
711
  $data = array();
712
  for ( $i = 0; $i < 24; $i ++ ) {
713
- foreach ( apply_filters( 'wphb_scan_get_times_interval', array( '00', '30' ) ) as $min ) {
714
  $time = $i . ':' . $min;
715
  $data[ $time ] = apply_filters( 'wphb_scan_get_times_hour_min', $time );
716
  }
710
  function wphb_get_times() {
711
  $data = array();
712
  for ( $i = 0; $i < 24; $i ++ ) {
713
+ foreach ( apply_filters( 'wphb_scan_get_times_interval', array( '00' ) ) as $min ) {
714
  $time = $i . ':' . $min;
715
  $data[ $time ] = apply_filters( 'wphb_scan_get_times_hour_min', $time );
716
  }
languages/wphb-default.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Hummingbird Pro package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Hummingbird Pro 1.6.1\n"
6
  "Report-Msgid-Bugs-To: https://wpmudev.org\n"
7
- "POT-Creation-Date: 2017-09-13 06:49:29+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -345,8 +345,8 @@ msgstr ""
345
  #: admin/class-dashboard-page.php:579
346
  #: build/wp-hummingbird/admin/class-dashboard-page.php:579
347
  #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:55
348
- #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:87
349
- #: core/pro/admin/class-pro-admin.php:55 core/pro/admin/class-pro-admin.php:87
350
  msgid "Reports"
351
  msgstr ""
352
 
@@ -2527,23 +2527,23 @@ msgstr ""
2527
  msgid "Minify callback does not exist"
2528
  msgstr ""
2529
 
2530
- #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:123
2531
  #: build/wp-hummingbird/core/pro/admin/views/performance/reporting-meta-box.php:24
2532
- #: core/pro/admin/class-pro-admin.php:123
2533
  #: core/pro/admin/views/performance/reporting-meta-box.php:24
2534
  msgid "Daily"
2535
  msgstr ""
2536
 
2537
- #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:126
2538
  #: build/wp-hummingbird/core/pro/admin/views/performance/reporting-meta-box.php:27
2539
- #: core/pro/admin/class-pro-admin.php:126
2540
  #: core/pro/admin/views/performance/reporting-meta-box.php:27
2541
  msgid "Weekly"
2542
  msgstr ""
2543
 
2544
- #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:129
2545
  #: build/wp-hummingbird/core/pro/admin/views/performance/reporting-meta-box.php:30
2546
- #: core/pro/admin/class-pro-admin.php:129
2547
  #: core/pro/admin/views/performance/reporting-meta-box.php:30
2548
  msgid "Monthly"
2549
  msgstr ""
@@ -2643,8 +2643,8 @@ msgstr ""
2643
  msgid "Update Settings"
2644
  msgstr ""
2645
 
2646
- #: build/wp-hummingbird/core/pro/class-pro-ajax.php:82
2647
- #: core/pro/class-pro-ajax.php:82
2648
  msgid "Please, insert a valid email."
2649
  msgstr ""
2650
 
2
  # This file is distributed under the same license as the Hummingbird Pro package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Hummingbird Pro 1.6.2\n"
6
  "Report-Msgid-Bugs-To: https://wpmudev.org\n"
7
+ "POT-Creation-Date: 2017-10-02 07:18:00+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
345
  #: admin/class-dashboard-page.php:579
346
  #: build/wp-hummingbird/admin/class-dashboard-page.php:579
347
  #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:55
348
+ #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:105
349
+ #: core/pro/admin/class-pro-admin.php:55 core/pro/admin/class-pro-admin.php:105
350
  msgid "Reports"
351
  msgstr ""
352
 
2527
  msgid "Minify callback does not exist"
2528
  msgstr ""
2529
 
2530
+ #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:141
2531
  #: build/wp-hummingbird/core/pro/admin/views/performance/reporting-meta-box.php:24
2532
+ #: core/pro/admin/class-pro-admin.php:141
2533
  #: core/pro/admin/views/performance/reporting-meta-box.php:24
2534
  msgid "Daily"
2535
  msgstr ""
2536
 
2537
+ #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:144
2538
  #: build/wp-hummingbird/core/pro/admin/views/performance/reporting-meta-box.php:27
2539
+ #: core/pro/admin/class-pro-admin.php:144
2540
  #: core/pro/admin/views/performance/reporting-meta-box.php:27
2541
  msgid "Weekly"
2542
  msgstr ""
2543
 
2544
+ #: build/wp-hummingbird/core/pro/admin/class-pro-admin.php:147
2545
  #: build/wp-hummingbird/core/pro/admin/views/performance/reporting-meta-box.php:30
2546
+ #: core/pro/admin/class-pro-admin.php:147
2547
  #: core/pro/admin/views/performance/reporting-meta-box.php:30
2548
  msgid "Monthly"
2549
  msgstr ""
2643
  msgid "Update Settings"
2644
  msgstr ""
2645
 
2646
+ #: build/wp-hummingbird/core/pro/class-pro-ajax.php:88
2647
+ #: core/pro/class-pro-ajax.php:88
2648
  msgid "Please, insert a valid email."
2649
  msgstr ""
2650
 
readme.txt CHANGED
@@ -6,9 +6,9 @@ Author URI: http://premium.wpmudev.org/
6
  Contributors: WPMUDEV
7
  Tags: Optimization, Caching, Speed, Performance, Faster, PageSpeed, Gzip, Compression, Minify, Minification, Cloudflare, Gravatar
8
  Requires at least: 3.5
9
- Tested up to: 4.8.1
10
  Requires PHP: 5.2
11
- Stable tag: 1.6.1
12
  License: GPLv2
13
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14
 
@@ -107,6 +107,9 @@ Minification is a great way to speed up your site but moving combining and rearr
107
 
108
  == Changelog ==
109
 
 
 
 
110
  = 1.6.1 ( 2017-09-13 ) =
111
  - New: Add font types to browser and cache rules
112
  - New: Automatic detection of HTTP/2 and disable of combine function in minification
6
  Contributors: WPMUDEV
7
  Tags: Optimization, Caching, Speed, Performance, Faster, PageSpeed, Gzip, Compression, Minify, Minification, Cloudflare, Gravatar
8
  Requires at least: 3.5
9
+ Tested up to: 4.8.2
10
  Requires PHP: 5.2
11
+ Stable tag: 1.6.2
12
  License: GPLv2
13
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.6.2 ( 2017-10-02 ) =
111
+ - Fix: API spamming issue
112
+
113
  = 1.6.1 ( 2017-09-13 ) =
114
  - New: Add font types to browser and cache rules
115
  - New: Automatic detection of HTTP/2 and disable of combine function in minification
wp-hummingbird.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  Plugin Name: Hummingbird
4
- Version: 1.6.1
5
  Plugin URI: https://premium.wpmudev.org/project/wp-hummingbird/
6
  Description: Hummingbird zips through your site finding new ways to make it load faster, from file compression and minification to browser caching – because when it comes to pagespeed, every millisecond counts.
7
  Author: WPMU DEV
@@ -32,7 +32,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32
  */
33
 
34
  if ( ! defined( 'WPHB_VERSION' ) ) {
35
- define( 'WPHB_VERSION', '1.6.1' );
36
  }
37
 
38
  if ( file_exists( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'free-mods.php' ) ) {
1
  <?php
2
  /**
3
  Plugin Name: Hummingbird
4
+ Version: 1.6.2
5
  Plugin URI: https://premium.wpmudev.org/project/wp-hummingbird/
6
  Description: Hummingbird zips through your site finding new ways to make it load faster, from file compression and minification to browser caching – because when it comes to pagespeed, every millisecond counts.
7
  Author: WPMU DEV
32
  */
33
 
34
  if ( ! defined( 'WPHB_VERSION' ) ) {
35
+ define( 'WPHB_VERSION', '1.6.2' );
36
  }
37
 
38
  if ( file_exists( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'free-mods.php' ) ) {