Version Description
Released 2016-12-07
- Bug fix: Manual logs not logging plugin or theme updates
Download this release
Release Info
Developer | ronalfy |
Plugin | Easy Updates Manager |
Version | 6.2.9 |
Comparing to | |
See all releases |
Code changes from version 6.2.7 to 6.2.9
- includes/MPSUM_Logs.php +29 -0
- main.php +1 -1
- readme.txt +10 -54
includes/MPSUM_Logs.php
CHANGED
@@ -19,6 +19,24 @@ class MPSUM_Logs {
|
|
19 |
*/
|
20 |
private static $instance = null;
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
* Holds version number of the table
|
24 |
*
|
@@ -59,6 +77,10 @@ class MPSUM_Logs {
|
|
59 |
update_site_option( 'mpsum_log_table_version', $this->version );
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
62 |
add_action( 'automatic_updates_complete', array( $this, 'automatic_updates' ) );
|
63 |
add_action( 'upgrader_process_complete', array( $this, 'manual_updates' ), 5, 2 );
|
64 |
|
@@ -265,6 +287,9 @@ class MPSUM_Logs {
|
|
265 |
}
|
266 |
$plugins_from_cache = get_site_transient( 'update_plugins' );
|
267 |
wp_clean_plugins_cache();
|
|
|
|
|
|
|
268 |
$plugins = get_plugins();
|
269 |
if ( !empty( $plugins ) && isset( $options[ 'plugins' ] ) && !empty( $options[ 'plugins' ] ) ) {
|
270 |
foreach( $options[ 'plugins' ] as $plugin ) {
|
@@ -299,8 +324,12 @@ class MPSUM_Logs {
|
|
299 |
break;
|
300 |
case 'theme':
|
301 |
if ( isset( $options[ 'themes' ] ) && !empty( $options[ 'themes' ] ) ) {
|
|
|
302 |
$theme_data_from_cache = get_site_transient( 'update_themes' );
|
303 |
wp_clean_themes_cache();
|
|
|
|
|
|
|
304 |
foreach( $options[ 'themes' ] as $theme ) {
|
305 |
$theme_data = wp_get_theme( $theme );
|
306 |
$theme_from_cache_version = isset( $theme_data_from_cache->checked[ $theme ] ) ? $theme_data_from_cache->checked[ $theme ] : false;
|
19 |
*/
|
20 |
private static $instance = null;
|
21 |
|
22 |
+
/**
|
23 |
+
* Holds the class instance.
|
24 |
+
*
|
25 |
+
* @since 6.2.9
|
26 |
+
* @access private
|
27 |
+
* @var stdClass plugins
|
28 |
+
*/
|
29 |
+
private $plugins_cache = null;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Holds the class instance.
|
33 |
+
*
|
34 |
+
* @since 6.2.9
|
35 |
+
* @access private
|
36 |
+
* @var stdClass $themes
|
37 |
+
*/
|
38 |
+
private $themes_cache = null;
|
39 |
+
|
40 |
/**
|
41 |
* Holds version number of the table
|
42 |
*
|
77 |
update_site_option( 'mpsum_log_table_version', $this->version );
|
78 |
}
|
79 |
|
80 |
+
// Set plugin/theme variables for log error checking
|
81 |
+
$this->plugins_cache = get_site_transient( 'update_plugins' );
|
82 |
+
$this->themes_cache = get_site_transient( 'update_themes' );
|
83 |
+
|
84 |
add_action( 'automatic_updates_complete', array( $this, 'automatic_updates' ) );
|
85 |
add_action( 'upgrader_process_complete', array( $this, 'manual_updates' ), 5, 2 );
|
86 |
|
287 |
}
|
288 |
$plugins_from_cache = get_site_transient( 'update_plugins' );
|
289 |
wp_clean_plugins_cache();
|
290 |
+
if ( false === $plugins_from_cache ) {
|
291 |
+
$plugins_from_cache = $this->plugins_cache;
|
292 |
+
}
|
293 |
$plugins = get_plugins();
|
294 |
if ( !empty( $plugins ) && isset( $options[ 'plugins' ] ) && !empty( $options[ 'plugins' ] ) ) {
|
295 |
foreach( $options[ 'plugins' ] as $plugin ) {
|
324 |
break;
|
325 |
case 'theme':
|
326 |
if ( isset( $options[ 'themes' ] ) && !empty( $options[ 'themes' ] ) ) {
|
327 |
+
|
328 |
$theme_data_from_cache = get_site_transient( 'update_themes' );
|
329 |
wp_clean_themes_cache();
|
330 |
+
if ( false === $theme_data_from_cache ) {
|
331 |
+
$theme_data_from_cache = $this->themes_cache;
|
332 |
+
}
|
333 |
foreach( $options[ 'themes' ] as $theme ) {
|
334 |
$theme_data = wp_get_theme( $theme );
|
335 |
$theme_from_cache_version = isset( $theme_data_from_cache->checked[ $theme ] ) ? $theme_data_from_cache->checked[ $theme ] : false;
|
main.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Updates Manager
|
|
4 |
Plugin URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
5 |
Description: Manage and disable WordPress updates, including core, plugin, theme, and automatic updates - Works with Multisite and has built-in logging features.
|
6 |
Author: Easy Updates Manager Team
|
7 |
-
Version: 6.2.
|
8 |
Requires at least: 4.4
|
9 |
Author URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
10 |
Contributors: kidsguide, ronalfy
|
4 |
Plugin URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
5 |
Description: Manage and disable WordPress updates, including core, plugin, theme, and automatic updates - Works with Multisite and has built-in logging features.
|
6 |
Author: Easy Updates Manager Team
|
7 |
+
Version: 6.2.9
|
8 |
Requires at least: 4.4
|
9 |
Author URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
10 |
Contributors: kidsguide, ronalfy
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: kidsguide, ronalfy, roary86, bigwing
|
|
3 |
Tags: updates manager, easy updates manager, disable updates manager, disable updates, update control, plugin updates, theme updates, core updates, automatic updates, multisite, logs
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 6.2.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Manage all your WordPress updates, including individual updates, automatic updates, logs, and loads more. Also works with WordPress Multisite.
|
@@ -107,68 +107,24 @@ For additional information and FAQs for Easy Updates Manager check out our <a hr
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
|
|
|
|
110 |
= 6.2.7 =
|
111 |
Released 2016-12-01
|
112 |
|
113 |
* Bug fix: Saving general settings disables logs
|
114 |
* Logs now out of beta. Woo hoo!
|
115 |
|
116 |
-
= 6.2.5 =
|
117 |
-
Released 2016-11-14
|
118 |
-
|
119 |
-
* Bug fix: internationalization was in the wrong place
|
120 |
-
|
121 |
-
= 6.2.3 =
|
122 |
-
Released 2016-08-21
|
123 |
-
|
124 |
-
* Bug fix: options setting on plugins screen disappeared
|
125 |
-
|
126 |
-
= 6.2.2 =
|
127 |
-
Released 2016-08-19
|
128 |
-
|
129 |
-
* Bug fix: manual updates of plugins and themes were showing as failures
|
130 |
-
* Bug fix: radio boxes on mobile were squished
|
131 |
-
|
132 |
-
= 6.2.0 =
|
133 |
-
Released 2016-08-17
|
134 |
-
|
135 |
-
* Added screen options for items per page and disabling the dashboard.
|
136 |
-
|
137 |
-
= 6.1.8 =
|
138 |
-
Released 2016-07-07
|
139 |
-
|
140 |
-
* Manual logs for translations now work with WordPress 4.6.
|
141 |
-
|
142 |
-
= 6.1.5 =
|
143 |
-
Released 2016-06-27
|
144 |
-
|
145 |
-
* Bug Fix: Quick links in plugin and themes tab weren't working.
|
146 |
-
|
147 |
|
148 |
For past changelogs, please visit our <a href="https://github.com/easy-updates-manager/easy-updates-manager/releases">GitHub</a>.
|
149 |
|
150 |
== Upgrade Notice ==
|
151 |
|
152 |
-
= 6.2.
|
153 |
-
Bug fix:
|
154 |
-
|
155 |
-
= 6.2.5 =
|
156 |
-
Bug fix: internationalization was in the wrong place
|
157 |
-
|
158 |
-
= 6.2.3 =
|
159 |
-
Bug fix: options setting on plugins screen disappeared
|
160 |
|
161 |
-
= 6.2.
|
162 |
-
|
163 |
-
|
164 |
-
= 6.2.0 =
|
165 |
-
Added screen options for items per page and disabling the dashboard.
|
166 |
-
|
167 |
-
= 6.1.8 =
|
168 |
-
Manual logs for translations now work with WordPress 4.6.
|
169 |
-
|
170 |
-
= 6.1.5 =
|
171 |
-
Bug Fix: Quick links in plugin and themes tab weren't working.
|
172 |
-
|
173 |
-
= 6.1.3 =
|
174 |
-
Bug fix: email addresses for background updates were not working for non-core updates.
|
3 |
Tags: updates manager, easy updates manager, disable updates manager, disable updates, update control, plugin updates, theme updates, core updates, automatic updates, multisite, logs
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 6.2.9
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Manage all your WordPress updates, including individual updates, automatic updates, logs, and loads more. Also works with WordPress Multisite.
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 6.2.9 =
|
111 |
+
Released 2016-12-07
|
112 |
+
|
113 |
+
* Bug fix: Manual logs not logging plugin or theme updates
|
114 |
+
|
115 |
= 6.2.7 =
|
116 |
Released 2016-12-01
|
117 |
|
118 |
* Bug fix: Saving general settings disables logs
|
119 |
* Logs now out of beta. Woo hoo!
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
For past changelogs, please visit our <a href="https://github.com/easy-updates-manager/easy-updates-manager/releases">GitHub</a>.
|
123 |
|
124 |
== Upgrade Notice ==
|
125 |
|
126 |
+
= 6.2.9 =
|
127 |
+
Bug fix: manual log updates not working with 4.7
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
+
= 6.2.7 =
|
130 |
+
Bug fix: logs disabled when general settings updated
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|