Version Description
2019-10-30 =
FEATURE: (Premium) Safe mode now checks themes for compatibility.
FEATURE: (Premium) Version controlled assets now show in the EUM plugins and themes tabs.
FIX: Delayed updates were delaying automatic updates to WordPress core when no delay was requested
TWEAK: Divi theme can now be auto-upgraded.
TWEAK: Bump required WP version from 4.6 to 4.7. We've not introduced anything to make it incompatible so it will likely stil work; but this is the support requirement.
Download this release
Release Info
Developer | DavidAnderson |
Plugin | Easy Updates Manager |
Version | 8.2.0 |
Comparing to | |
See all releases |
Code changes from version 8.1.1 to 8.2.0
- includes/MPSUM_Disable_Updates.php +6 -0
- includes/MPSUM_Disable_VCS.php +42 -0
- includes/MPSUM_Logs.php +6 -41
- languages/stops-core-theme-and-plugin-updates.pot +3 -3
- main.php +3 -3
- readme.txt +11 -3
- templates/admin-tab-plugins.php +1 -0
- templates/admin-tab-themes.php +1 -1
includes/MPSUM_Disable_Updates.php
CHANGED
@@ -166,6 +166,12 @@ class MPSUM_Disable_Updates {
|
|
166 |
add_filter('site_transient_update_themes', array( $this, 'disable_theme_notifications' ), PHP_INT_MAX - 10);
|
167 |
add_filter('http_request_args', array( $this, 'http_request_args_remove_plugins_themes' ), 5, 2);
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
} //end constructor
|
170 |
|
171 |
/**
|
166 |
add_filter('site_transient_update_themes', array( $this, 'disable_theme_notifications' ), PHP_INT_MAX - 10);
|
167 |
add_filter('http_request_args', array( $this, 'http_request_args_remove_plugins_themes' ), 5, 2);
|
168 |
|
169 |
+
// Divi compatibility which allows automatic updates to occur
|
170 |
+
if (isset($GLOBALS['et_core_updates'])) {
|
171 |
+
$divi_upgrader = $GLOBALS['et_core_updates'];
|
172 |
+
remove_action('after_setup_theme', array($divi_upgrader, 'remove_theme_update_actions'), 11);
|
173 |
+
}
|
174 |
+
|
175 |
} //end constructor
|
176 |
|
177 |
/**
|
includes/MPSUM_Disable_VCS.php
CHANGED
@@ -46,6 +46,8 @@ class MPSUM_Disable_VCS {
|
|
46 |
add_filter('site_transient_update_themes', array($this, 'process_theme_updates'), 100);
|
47 |
add_action('admin_notices', array($this, 'notice'), 5);
|
48 |
add_action('network_admin_notices', array($this, 'notice'), 5);
|
|
|
|
|
49 |
}
|
50 |
|
51 |
/**
|
@@ -73,6 +75,46 @@ class MPSUM_Disable_VCS {
|
|
73 |
}
|
74 |
return $value;
|
75 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
/**
|
78 |
* Exclude plugins under version control.
|
46 |
add_filter('site_transient_update_themes', array($this, 'process_theme_updates'), 100);
|
47 |
add_action('admin_notices', array($this, 'notice'), 5);
|
48 |
add_action('network_admin_notices', array($this, 'notice'), 5);
|
49 |
+
add_action('eum_plugins_tab_header', array($this, 'show_eum_plugins_tab_warning'));
|
50 |
+
add_action('eum_themes_tab_header', array($this, 'show_eum_themes_tab_warning'));
|
51 |
}
|
52 |
|
53 |
/**
|
75 |
}
|
76 |
return $value;
|
77 |
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Show a VCS warning on the EUM plugins tab
|
81 |
+
*/
|
82 |
+
public function show_eum_plugins_tab_warning() {
|
83 |
+
$this->excluded_plugins = array_unique($this->excluded_plugins);
|
84 |
+
if (!empty($this->excluded_plugins)) {
|
85 |
+
$plugin_list = sprintf('<strong>%s</strong>', esc_html(implode($this->excluded_plugins, ', ')));
|
86 |
+
}
|
87 |
+
if (empty($plugin_list)) {
|
88 |
+
return;
|
89 |
+
}
|
90 |
+
?>
|
91 |
+
<div class="notice notice-warning">
|
92 |
+
<?php
|
93 |
+
echo '<p>' . sprintf(esc_html__('The following plugins are under version control and will not be updated: %s', 'stops-core-theme-and-plugin-updates'), $plugin_list) . '</p>';
|
94 |
+
?>
|
95 |
+
</div>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Show a VCS warning on the EUM themes tab
|
101 |
+
*/
|
102 |
+
public function show_eum_themes_tab_warning() {
|
103 |
+
$this->excluded_themes = array_unique($this->excluded_themes);
|
104 |
+
if (!empty($this->excluded_themes)) {
|
105 |
+
$theme_list = sprintf('<strong>%s</strong>', esc_html(implode($this->excluded_themes, ', ')));
|
106 |
+
}
|
107 |
+
if (empty($theme_list)) {
|
108 |
+
return;
|
109 |
+
}
|
110 |
+
?>
|
111 |
+
<div class="notice notice-warning">
|
112 |
+
<?php
|
113 |
+
echo '<p>' . sprintf(esc_html__('The following themes are under version control and will not be updated: %s', 'stops-core-theme-and-plugin-updates'), $theme_list) . '</p>';
|
114 |
+
?>
|
115 |
+
</div>
|
116 |
+
<?php
|
117 |
+
}
|
118 |
|
119 |
/**
|
120 |
* Exclude plugins under version control.
|
includes/MPSUM_Logs.php
CHANGED
@@ -355,11 +355,15 @@ class MPSUM_Logs {
|
|
355 |
* @param int $status Status of upgrade
|
356 |
* @param int $user_id User responsible for the upgrade
|
357 |
*/
|
358 |
-
|
359 |
global $wpdb;
|
360 |
$table_name = $wpdb->base_prefix . 'eum_logs';
|
361 |
if ('' == $version_from) $version_from = '0.00';
|
362 |
$notes = str_replace('…', '', $notes);
|
|
|
|
|
|
|
|
|
363 |
$wpdb->insert(
|
364 |
$table_name,
|
365 |
array(
|
@@ -396,7 +400,7 @@ class MPSUM_Logs {
|
|
396 |
* @param string $slug Slug of item
|
397 |
* @return string The name of the item being updated.
|
398 |
*/
|
399 |
-
|
400 |
if (! function_exists('get_plugins')) {
|
401 |
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
402 |
}
|
@@ -489,45 +493,6 @@ class MPSUM_Logs {
|
|
489 |
}
|
490 |
}
|
491 |
|
492 |
-
/**
|
493 |
-
* Log when a plugin (themes are hopefully coming soon) fails to update via safemode.
|
494 |
-
*
|
495 |
-
* @since 7.0.1
|
496 |
-
* @access private
|
497 |
-
* @param object $item The plugin item that will be logged.
|
498 |
-
*/
|
499 |
-
public static function log_safe_mode($item) {
|
500 |
-
|
501 |
-
global $wpdb;
|
502 |
-
$plugin_data = get_plugin_data(WP_PLUGIN_DIR.'/'.$item->plugin);
|
503 |
-
$tablename = $wpdb->base_prefix . 'eum_logs';
|
504 |
-
|
505 |
-
// Version numbers will be the same since the plugin didn't update
|
506 |
-
$version_from = $plugin_data['Version'];
|
507 |
-
if ('' == $version_from) $version_from = '0.00';
|
508 |
-
$wpdb->insert(
|
509 |
-
$tablename,
|
510 |
-
array(
|
511 |
-
'name' => $plugin_data['Name'],
|
512 |
-
'type' => 'plugin',
|
513 |
-
'version_from' => $version_from,
|
514 |
-
'version' => $plugin_data['Version'],
|
515 |
-
'action' => 'automatic',
|
516 |
-
'status' => 2,
|
517 |
-
'date' => current_time('mysql'),
|
518 |
-
),
|
519 |
-
array(
|
520 |
-
'%s',
|
521 |
-
'%s',
|
522 |
-
'%s',
|
523 |
-
'%s',
|
524 |
-
'%s',
|
525 |
-
'%s',
|
526 |
-
'%s',
|
527 |
-
)
|
528 |
-
);
|
529 |
-
}
|
530 |
-
|
531 |
/**
|
532 |
* Creates the log table
|
533 |
*
|
355 |
* @param int $status Status of upgrade
|
356 |
* @param int $user_id User responsible for the upgrade
|
357 |
*/
|
358 |
+
public function insert_log($name, $type, $version_from, $version, $action, $status, $user_id = 0, $notes = '' ) {
|
359 |
global $wpdb;
|
360 |
$table_name = $wpdb->base_prefix . 'eum_logs';
|
361 |
if ('' == $version_from) $version_from = '0.00';
|
362 |
$notes = str_replace('…', '', $notes);
|
363 |
+
|
364 |
+
// Strip URLs from notes
|
365 |
+
$notes = preg_replace('/\?.*/', '', $notes);
|
366 |
+
|
367 |
$wpdb->insert(
|
368 |
$table_name,
|
369 |
array(
|
400 |
* @param string $slug Slug of item
|
401 |
* @return string The name of the item being updated.
|
402 |
*/
|
403 |
+
public function get_name_for_update($type, $slug) {
|
404 |
if (! function_exists('get_plugins')) {
|
405 |
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
406 |
}
|
493 |
}
|
494 |
}
|
495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
/**
|
497 |
* Creates the log table
|
498 |
*
|
languages/stops-core-theme-and-plugin-updates.pot
CHANGED
@@ -1018,11 +1018,11 @@ msgstr ""
|
|
1018 |
msgid "User has insufficient capability to take backups"
|
1019 |
msgstr ""
|
1020 |
|
1021 |
-
#: src/includes/MPSUM_Disable_VCS.php:
|
1022 |
msgid "The following plugins are under version control and will not be updated: %s"
|
1023 |
msgstr ""
|
1024 |
|
1025 |
-
#: src/includes/MPSUM_Disable_VCS.php:
|
1026 |
msgid "The following themes are under version control and will not be updated: %s"
|
1027 |
msgstr ""
|
1028 |
|
@@ -1524,7 +1524,7 @@ msgstr ""
|
|
1524 |
msgid "All plugin updates have been disabled."
|
1525 |
msgstr ""
|
1526 |
|
1527 |
-
#: src/templates/admin-tab-plugins.php:
|
1528 |
msgid "Save"
|
1529 |
msgstr ""
|
1530 |
|
1018 |
msgid "User has insufficient capability to take backups"
|
1019 |
msgstr ""
|
1020 |
|
1021 |
+
#: src/includes/MPSUM_Disable_VCS.php:93, src/includes/MPSUM_Disable_VCS.php:180
|
1022 |
msgid "The following plugins are under version control and will not be updated: %s"
|
1023 |
msgstr ""
|
1024 |
|
1025 |
+
#: src/includes/MPSUM_Disable_VCS.php:113, src/includes/MPSUM_Disable_VCS.php:185
|
1026 |
msgid "The following themes are under version control and will not be updated: %s"
|
1027 |
msgstr ""
|
1028 |
|
1524 |
msgid "All plugin updates have been disabled."
|
1525 |
msgstr ""
|
1526 |
|
1527 |
+
#: src/templates/admin-tab-plugins.php:14, src/templates/admin-tab-themes.php:13
|
1528 |
msgid "Save"
|
1529 |
msgstr ""
|
1530 |
|
main.php
CHANGED
@@ -5,8 +5,8 @@ Plugin Name: Easy Updates Manager
|
|
5 |
Plugin URI: https://easyupdatesmanager.com
|
6 |
Description: Manage and disable WordPress updates, including core, plugin, theme, and automatic updates - Works with Multisite and has built-in logging features.
|
7 |
Author: Easy Updates Manager Team
|
8 |
-
Version: 8.
|
9 |
-
Requires at least: 4.
|
10 |
Tested up to: 5.3
|
11 |
Author URI: https://easyupdatesmanager.com
|
12 |
Contributors: kidsguide, ronalfy
|
@@ -19,7 +19,7 @@ Network: true
|
|
19 |
|
20 |
if (!defined('ABSPATH')) die('No direct access allowed');
|
21 |
if (!defined('EASY_UPDATES_MANAGER_MAIN_PATH')) define('EASY_UPDATES_MANAGER_MAIN_PATH', plugin_dir_path(__FILE__));
|
22 |
-
if (!defined('EASY_UPDATES_MANAGER_VERSION')) define('EASY_UPDATES_MANAGER_VERSION', '8.
|
23 |
if (!defined('EASY_UPDATES_MANAGER_URL')) define('EASY_UPDATES_MANAGER_URL', plugin_dir_url(__FILE__));
|
24 |
if (!defined('EASY_UPDATES_MANAGER_SITE_URL')) define('EASY_UPDATES_MANAGER_SITE_URL', 'https://easyupdatesmanager.com/');
|
25 |
if (!defined('EASY_UPDATES_MANAGER_SLUG')) define('EASY_UPDATES_MANAGER_SLUG', plugin_basename(__FILE__));
|
5 |
Plugin URI: https://easyupdatesmanager.com
|
6 |
Description: Manage and disable WordPress updates, including core, plugin, theme, and automatic updates - Works with Multisite and has built-in logging features.
|
7 |
Author: Easy Updates Manager Team
|
8 |
+
Version: 8.2.0
|
9 |
+
Requires at least: 4.7
|
10 |
Tested up to: 5.3
|
11 |
Author URI: https://easyupdatesmanager.com
|
12 |
Contributors: kidsguide, ronalfy
|
19 |
|
20 |
if (!defined('ABSPATH')) die('No direct access allowed');
|
21 |
if (!defined('EASY_UPDATES_MANAGER_MAIN_PATH')) define('EASY_UPDATES_MANAGER_MAIN_PATH', plugin_dir_path(__FILE__));
|
22 |
+
if (!defined('EASY_UPDATES_MANAGER_VERSION')) define('EASY_UPDATES_MANAGER_VERSION', '8.2.0');
|
23 |
if (!defined('EASY_UPDATES_MANAGER_URL')) define('EASY_UPDATES_MANAGER_URL', plugin_dir_url(__FILE__));
|
24 |
if (!defined('EASY_UPDATES_MANAGER_SITE_URL')) define('EASY_UPDATES_MANAGER_SITE_URL', 'https://easyupdatesmanager.com/');
|
25 |
if (!defined('EASY_UPDATES_MANAGER_SLUG')) define('EASY_UPDATES_MANAGER_SLUG', plugin_basename(__FILE__));
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Easy Updates Manager ===
|
2 |
Contributors: davidanderson, kidsguide, ronalfy, roary86, bigwing, webulous
|
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.
|
5 |
Requires PHP: 5.3
|
6 |
Donate link: https://easyupdatesmanager.com
|
7 |
Tested up to: 5.3
|
8 |
-
Stable tag: 8.
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Manage all your WordPress updates, including individual updates, automatic updates, logs, and loads more. This also works very well with WordPress Multisite.
|
@@ -126,6 +126,14 @@ For additional information and FAQs for Easy Updates Manager <a href="https://ea
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
= 8.1.1 - 2019-10-23 =
|
130 |
|
131 |
* FIX: Fixed uninstall script error when deleting the plugin.
|
@@ -266,4 +274,4 @@ For past changelogs, <a href="https://easyupdatesmanager.com/blog/">please visit
|
|
266 |
|
267 |
== Upgrade Notice ==
|
268 |
|
269 |
-
* 8.
|
1 |
=== Easy Updates Manager ===
|
2 |
Contributors: davidanderson, kidsguide, ronalfy, roary86, bigwing, webulous
|
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.7
|
5 |
Requires PHP: 5.3
|
6 |
Donate link: https://easyupdatesmanager.com
|
7 |
Tested up to: 5.3
|
8 |
+
Stable tag: 8.2.0
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Manage all your WordPress updates, including individual updates, automatic updates, logs, and loads more. This also works very well with WordPress Multisite.
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 8.2.0 - 2019-10-30 =
|
130 |
+
|
131 |
+
* FEATURE: (Premium) Safe mode now checks themes for compatibility.
|
132 |
+
* FEATURE: (Premium) Version controlled assets now show in the EUM plugins and themes tabs.
|
133 |
+
* FIX: Delayed updates were delaying automatic updates to WordPress core when no delay was requested
|
134 |
+
* TWEAK: Divi theme can now be auto-upgraded.
|
135 |
+
* TWEAK: Bump required WP version from 4.6 to 4.7. We've not introduced anything to make it incompatible so it will likely stil work; but this is the support requirement.
|
136 |
+
|
137 |
= 8.1.1 - 2019-10-23 =
|
138 |
|
139 |
* FIX: Fixed uninstall script error when deleting the plugin.
|
274 |
|
275 |
== Upgrade Notice ==
|
276 |
|
277 |
+
* 8.2.0 : Various tweaks and improvements and a fix for an unwanted delay in WP core updates - a recommended update for all
|
templates/admin-tab-plugins.php
CHANGED
@@ -5,6 +5,7 @@
|
|
5 |
if (false === MPSUM_Admin_Plugins::can_update_plugins()) {
|
6 |
printf('<div class="error"><p><strong>%s</strong></p></div>', esc_html__('All plugin updates have been disabled.', 'stops-core-theme-and-plugin-updates'));
|
7 |
}
|
|
|
8 |
$plugin_table = new MPSUM_Plugins_List_Table($args = array('screen' => $slug, 'paged' => $paged, 'view' => $view));
|
9 |
$plugin_table->prepare_items();
|
10 |
$plugin_table->views();
|
5 |
if (false === MPSUM_Admin_Plugins::can_update_plugins()) {
|
6 |
printf('<div class="error"><p><strong>%s</strong></p></div>', esc_html__('All plugin updates have been disabled.', 'stops-core-theme-and-plugin-updates'));
|
7 |
}
|
8 |
+
do_action('eum_plugins_tab_header');
|
9 |
$plugin_table = new MPSUM_Plugins_List_Table($args = array('screen' => $slug, 'paged' => $paged, 'view' => $view));
|
10 |
$plugin_table->prepare_items();
|
11 |
$plugin_table->views();
|
templates/admin-tab-themes.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
if (false === MPSUM_Admin_Themes::can_update_themes()) {
|
5 |
printf('<div class="error"><p><strong>%s</strong></p></div>', esc_html__('All theme updates have been disabled.', 'stops-core-theme-and-plugin-updates'));
|
6 |
}
|
7 |
-
|
8 |
$theme_table = new MPSUM_Themes_List_Table($args = array('screen' => $slug, 'paged' => $paged, 'view' => $view));
|
9 |
$theme_table->prepare_items();
|
10 |
$theme_table->views();
|
4 |
if (false === MPSUM_Admin_Themes::can_update_themes()) {
|
5 |
printf('<div class="error"><p><strong>%s</strong></p></div>', esc_html__('All theme updates have been disabled.', 'stops-core-theme-and-plugin-updates'));
|
6 |
}
|
7 |
+
do_action('eum_themes_tab_header');
|
8 |
$theme_table = new MPSUM_Themes_List_Table($args = array('screen' => $slug, 'paged' => $paged, 'view' => $view));
|
9 |
$theme_table->prepare_items();
|
10 |
$theme_table->views();
|