iThemes Sync - Version 2.1.5

Version Description

  • Bug Fix: Limit the total number of unsent notices that can be queued
Download this release

Release Info

Developer layotte
Plugin Icon 128x128 iThemes Sync
Version 2.1.5
Comparing to
See all releases

Code changes from version 2.1.4.1 to 2.1.5

Files changed (5) hide show
  1. history.txt +3 -1
  2. init.php +1 -1
  3. lang/ithemes-sync.pot +2 -2
  4. notice-handler.php +6 -0
  5. readme.txt +4 -1
history.txt CHANGED
@@ -231,4 +231,6 @@
231
  2.1.4 - 2020-03-16 - Josh Oakes
232
  Enhancement: Added support for public-key signed requests to the plugin
233
  2.1.4.1 - 2020-03-17 - Josh Oakes
234
- Bug Fix: Roll back public-key signed request support
 
 
231
  2.1.4 - 2020-03-16 - Josh Oakes
232
  Enhancement: Added support for public-key signed requests to the plugin
233
  2.1.4.1 - 2020-03-17 - Josh Oakes
234
+ Bug Fix: Roll back public-key signed request support
235
+ 2.1.5 - 2020-04-03 - Josh Oakes
236
+ Bug Fix: Limit the total number of unsent notices that can be queued
init.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: iThemes Sync
4
  Plugin URI: http://ithemes.com/sync
5
  Description: Manage updates to your WordPress sites easily in one place.
6
  Author: iThemes
7
- Version: 2.1.4.1
8
  Author URI: http://ithemes.com/
9
  Domain Path: /lang/
10
  iThemes Package: ithemes-sync
4
  Plugin URI: http://ithemes.com/sync
5
  Description: Manage updates to your WordPress sites easily in one place.
6
  Author: iThemes
7
+ Version: 2.1.5
8
  Author URI: http://ithemes.com/
9
  Domain Path: /lang/
10
  iThemes Package: ithemes-sync
lang/ithemes-sync.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the iThemes Sync package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: iThemes Sync 2.1.4.1\n"
6
  "Report-Msgid-Bugs-To: http://ithemes.com/support/\n"
7
- "POT-Creation-Date: 2020-03-18 14:28:37+00:00\n"
8
  "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
2
  # This file is distributed under the same license as the iThemes Sync package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: iThemes Sync 2.1.5\n"
6
  "Report-Msgid-Bugs-To: http://ithemes.com/support/\n"
7
+ "POT-Creation-Date: 2020-04-03 16:05:35+00:00\n"
8
  "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
notice-handler.php CHANGED
@@ -94,6 +94,12 @@ class Ithemes_Sync_Notice_Handler {
94
  }
95
 
96
  public function set_urgent_notices( $notices ) {
 
 
 
 
 
 
97
  update_site_option( $this->urgent_notice_cache_option_name, $notices );
98
  }
99
 
94
  }
95
 
96
  public function set_urgent_notices( $notices ) {
97
+
98
+ // Only keep last n items to prevent an excessive backlog
99
+ if ( count( $notices ) > 30 ) {
100
+ $notices = array_slice( $notices, -30 );
101
+ }
102
+
103
  update_site_option( $this->urgent_notice_cache_option_name, $notices );
104
  }
105
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: manage multiple Sites, backup, security, migrate, SEO, manage updates, adm
4
  Requires at least: 4.5
5
  Requires PHP: 5.6
6
  Tested up to: 5.4
7
- Stable tag: 2.1.4.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/quick-guide-gplv3.html
10
 
@@ -87,6 +87,9 @@ Make steady, reliable income for WordPress maintenance with iThemes Sync Pro’s
87
 
88
  == Changelog ==
89
 
 
 
 
90
  = 2.1.4.1 =
91
  * Bug Fix: Roll back public-key signed request support
92
 
4
  Requires at least: 4.5
5
  Requires PHP: 5.6
6
  Tested up to: 5.4
7
+ Stable tag: 2.1.5
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/quick-guide-gplv3.html
10
 
87
 
88
  == Changelog ==
89
 
90
+ = 2.1.5 =
91
+ * Bug Fix: Limit the total number of unsent notices that can be queued
92
+
93
  = 2.1.4.1 =
94
  * Bug Fix: Roll back public-key signed request support
95