Easy Updates Manager - Version 6.2.11

Version Description

Released 2016-02-13

  • Bug fix: Manual logs only logging one plugin update even if there are multiple
Download this release

Release Info

Developer ronalfy
Plugin Icon 128x128 Easy Updates Manager
Version 6.2.11
Comparing to
See all releases

Code changes from version 6.2.9 to 6.2.11

Files changed (3) hide show
  1. includes/MPSUM_Logs.php +3 -6
  2. main.php +1 -1
  3. readme.txt +10 -2
includes/MPSUM_Logs.php CHANGED
@@ -254,7 +254,6 @@ class MPSUM_Logs {
254
  $tablename = $wpdb->base_prefix . 'eum_logs';
255
  $user_id = get_current_user_id();
256
  if ( 0 == $user_id ) return; // If there is no user, this is not a manual update
257
-
258
  switch( $options[ 'type' ] ) {
259
  case 'core':
260
  include( ABSPATH . WPINC . '/version.php' );
@@ -294,9 +293,9 @@ class MPSUM_Logs {
294
  if ( !empty( $plugins ) && isset( $options[ 'plugins' ] ) && !empty( $options[ 'plugins' ] ) ) {
295
  foreach( $options[ 'plugins' ] as $plugin ) {
296
  $plugin_data = isset( $plugins[ $plugin ] ) ? $plugins[ $plugin ] : false;
297
- $plugins_from_cache = isset( $plugins_from_cache->checked[ $plugin ] ) ? $plugins_from_cache->checked[ $plugin ] : false;
298
- if ( false !== $plugin_data && false !== $plugins_from_cache ) {
299
- $status = ( $plugin_data[ 'Version' ] == $plugins_from_cache ) ? 0 : 1;
300
  $wpdb->insert(
301
  $tablename,
302
  array(
@@ -333,8 +332,6 @@ class MPSUM_Logs {
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;
336
- error_log( $theme_from_cache_version );
337
- error_log( $theme_data->get( 'Version' ) );
338
  if ( $theme_data->exists() && false !== $theme_from_cache_version ) {
339
  $status = ( $theme_from_cache_version == $theme_data->get( 'Version' ) ) ? 0 : 1;
340
  $wpdb->insert(
254
  $tablename = $wpdb->base_prefix . 'eum_logs';
255
  $user_id = get_current_user_id();
256
  if ( 0 == $user_id ) return; // If there is no user, this is not a manual update
 
257
  switch( $options[ 'type' ] ) {
258
  case 'core':
259
  include( ABSPATH . WPINC . '/version.php' );
293
  if ( !empty( $plugins ) && isset( $options[ 'plugins' ] ) && !empty( $options[ 'plugins' ] ) ) {
294
  foreach( $options[ 'plugins' ] as $plugin ) {
295
  $plugin_data = isset( $plugins[ $plugin ] ) ? $plugins[ $plugin ] : false;
296
+ $current_plugin = isset( $plugins_from_cache->checked[ $plugin ] ) ? $plugins_from_cache->checked[ $plugin ] : false;
297
+ if ( false !== $plugin_data && false !== $current_plugin ) {
298
+ $status = ( $plugin_data[ 'Version' ] == $current_plugin ) ? 0 : 1;
299
  $wpdb->insert(
300
  $tablename,
301
  array(
332
  foreach( $options[ 'themes' ] as $theme ) {
333
  $theme_data = wp_get_theme( $theme );
334
  $theme_from_cache_version = isset( $theme_data_from_cache->checked[ $theme ] ) ? $theme_data_from_cache->checked[ $theme ] : false;
 
 
335
  if ( $theme_data->exists() && false !== $theme_from_cache_version ) {
336
  $status = ( $theme_from_cache_version == $theme_data->get( 'Version' ) ) ? 0 : 1;
337
  $wpdb->insert(
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.9
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.11
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
@@ -2,8 +2,8 @@
2
  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.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,6 +107,11 @@ For additional information and FAQs for Easy Updates Manager check out our <a hr
107
 
108
  == Changelog ==
109
 
 
 
 
 
 
110
  = 6.2.9 =
111
  Released 2016-12-07
112
 
@@ -123,6 +128,9 @@ For past changelogs, please visit our <a href="https://github.com/easy-updates-m
123
 
124
  == Upgrade Notice ==
125
 
 
 
 
126
  = 6.2.9 =
127
  Bug fix: manual log updates not working with 4.7
128
 
2
  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.2
6
+ Stable tag: 6.2.11
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.11 =
111
+ Released 2016-02-13
112
+
113
+ * Bug fix: Manual logs only logging one plugin update even if there are multiple
114
+
115
  = 6.2.9 =
116
  Released 2016-12-07
117
 
128
 
129
  == Upgrade Notice ==
130
 
131
+ = 6.2.11 =
132
+ Bug fix: Manual logs only logging one plugin update even if there are multiple
133
+
134
  = 6.2.9 =
135
  Bug fix: manual log updates not working with 4.7
136