Version Description
Download this release
Release Info
Developer | kidsguide |
Plugin | Easy Updates Manager |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.5.0
- Function.php +154 -50
- lang/default.mo.txt +0 -3
- readme.txt +36 -14
Function.php
CHANGED
@@ -2,19 +2,19 @@
|
|
2 |
/**
|
3 |
* @package Disable Updates Manager
|
4 |
* @author Websiteguy
|
5 |
-
* @version 2.
|
6 |
*/
|
7 |
/*
|
8 |
Plugin Name: Disable Updates Manager
|
9 |
Plugin URI: http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
10 |
-
Version: 2.
|
11 |
Description: Now you can chose which type of update you won't to disable! Just go to the settings page under dashboard.
|
12 |
Author: Websiteguy
|
13 |
Author URI: http://profiles.wordpress.org/kidsguide/
|
14 |
Compatible with WordPress 2.3+.
|
15 |
*/
|
16 |
/*
|
17 |
-
Copyright 2014 Websiteguy (email : mpsparrow@cogeco.ca)
|
18 |
|
19 |
This program is free software; you can redistribute it and/or modify
|
20 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -75,6 +75,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
75 |
add_submenu_page( 'index.php', 'Disable Updates', __('Disable Updates','disable-updates-manager'), 'administrator', __FILE__, array(&$this, 'display_page') );
|
76 |
}
|
77 |
|
|
|
|
|
78 |
function load_disable_updates() {
|
79 |
$this->status = get_option('_disable_updates');
|
80 |
|
@@ -133,48 +135,134 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
133 |
|
134 |
break;
|
135 |
|
136 |
-
//
|
137 |
-
case '
|
138 |
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
164 |
-
wp_clear_scheduled_hook( 'wp_update_themes' );
|
165 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
|
167 |
-
|
168 |
-
|
169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
|
175 |
-
|
176 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
|
|
178 |
break;
|
179 |
|
180 |
}
|
@@ -186,12 +274,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
186 |
|
187 |
// Check if user can access to the plugin
|
188 |
if (!current_user_can('update_core'))
|
189 |
-
wp_die( __('You do not have
|
190 |
|
191 |
?>
|
192 |
|
193 |
-
<div class="wrap">
|
194 |
-
<h2><?php _e('Disable
|
195 |
|
196 |
<form method="post" action="options.php">
|
197 |
|
@@ -200,10 +288,26 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
200 |
<table class="form-table">
|
201 |
|
202 |
<tr>
|
203 |
-
<th scope="row"><?php _e('Disable Updates:', 'disable-updates-manager') ?></th>
|
204 |
<td>
|
205 |
<fieldset>
|
206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
<label for="plugins_notify">
|
208 |
<input type="checkbox" <?php checked(1, (int)$this->status['plugin'], true); ?> value="1" id="plugins_notify" name="_disable_updates[plugin]"> <?php _e('Disable Plugin Updates', 'disable-updates-manager') ?>
|
209 |
</label>
|
@@ -215,23 +319,23 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
215 |
<label for="core_notify">
|
216 |
<input type="checkbox" <?php checked(1, (int)$this->status['core'], true); ?> value="1" id="core_notify" name="_disable_updates[core]"> <?php _e('Disable WordPress Core Update', 'disable-updates-manager') ?>
|
217 |
</label>
|
|
|
|
|
218 |
</fieldset>
|
219 |
</td>
|
220 |
</tr>
|
221 |
|
222 |
<tr>
|
223 |
-
<th scope="row"><?php _e('Other Settings:', 'disable-updates-manager') ?></th>
|
224 |
<td>
|
225 |
<fieldset>
|
226 |
-
|
227 |
-
|
|
|
228 |
<label for="page_notify">
|
229 |
<input type="checkbox" <?php checked(1, (int)$this->status['page'], true); ?> value="1" id="page_notify" name="_disable_updates[page]"> <?php _e('Remove Updates Page (Under Dashboard)', 'disable-updates-manager') ?>
|
230 |
</label>
|
231 |
-
|
232 |
-
|
233 |
-
<input type="checkbox" <?php checked(1, (int)$this->status['files'], true); ?> value="1" id="files_notify" name="_disable_updates[files]"> <?php _e('Removes Updates Files (Note: Only use this setting if you are disabling all the updates)', 'disable-updates-manager') ?>
|
234 |
-
</label>
|
235 |
</fieldset>
|
236 |
</td>
|
237 |
</tr>
|
2 |
/**
|
3 |
* @package Disable Updates Manager
|
4 |
* @author Websiteguy
|
5 |
+
* @version 2.5.0
|
6 |
*/
|
7 |
/*
|
8 |
Plugin Name: Disable Updates Manager
|
9 |
Plugin URI: http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
10 |
+
Version: 2.5.0
|
11 |
Description: Now you can chose which type of update you won't to disable! Just go to the settings page under dashboard.
|
12 |
Author: Websiteguy
|
13 |
Author URI: http://profiles.wordpress.org/kidsguide/
|
14 |
Compatible with WordPress 2.3+.
|
15 |
*/
|
16 |
/*
|
17 |
+
@Copyright 2014 Websiteguy (email : mpsparrow@cogeco.ca)
|
18 |
|
19 |
This program is free software; you can redistribute it and/or modify
|
20 |
it under the terms of the GNU General Public License, version 2, as
|
75 |
add_submenu_page( 'index.php', 'Disable Updates', __('Disable Updates','disable-updates-manager'), 'administrator', __FILE__, array(&$this, 'display_page') );
|
76 |
}
|
77 |
|
78 |
+
|
79 |
+
// Functions for Plugin (Change in Settings)
|
80 |
function load_disable_updates() {
|
81 |
$this->status = get_option('_disable_updates');
|
82 |
|
135 |
|
136 |
break;
|
137 |
|
138 |
+
// Disable All Updates
|
139 |
+
case 'all' :
|
140 |
|
141 |
+
// Disable All Updates
|
142 |
+
|
143 |
+
// Disable Plugin Updates
|
144 |
+
|
145 |
+
remove_action( 'load-update-core.php', 'wp_update_plugins' );
|
146 |
+
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
|
147 |
+
|
148 |
+
// Disable Theme Updates
|
149 |
+
|
150 |
+
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
151 |
+
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
|
152 |
+
|
153 |
+
// Disable Core Updates
|
154 |
+
|
155 |
+
remove_action( 'load-update-core.php', 'wp_update_core' );
|
156 |
+
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
|
157 |
+
|
158 |
+
// Remove Update Submenu Under Dashboard. The same code in our new plugin "Remove the Updates Submenu".
|
159 |
+
|
160 |
+
add_action('admin_menu', 'remove_menus', 102);
|
161 |
+
function remove_menus() {
|
162 |
+
global $submenu;
|
163 |
+
remove_submenu_page ( 'index.php', 'update-core.php' );
|
|
|
|
|
|
|
164 |
}
|
165 |
+
|
166 |
+
// Hide Update Notices in Admin Dashboard
|
167 |
+
|
168 |
+
add_action('admin_menu','hide_admin_notices');
|
169 |
+
function hide_admin_notices() {
|
170 |
+
remove_action( 'admin_notices', 'update_nag', 3 );
|
171 |
+
}
|
172 |
+
|
173 |
+
// Turns off Automatic Updates in WordPress
|
174 |
+
|
175 |
+
define( 'Automatic_Updater_Disabled', true );
|
176 |
+
define('WP_AUTO_UPDATE_CORE', false);
|
177 |
+
|
178 |
+
// Removes Update E-mails (Only works with some plugins)
|
179 |
+
|
180 |
+
// Core E-mails
|
181 |
+
|
182 |
+
apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );
|
183 |
+
|
184 |
+
// Plugin E-mails
|
185 |
+
|
186 |
+
apply_filters( 'auto_plugin_update_send_email', false, $type, $plugin_update, $result );
|
187 |
+
|
188 |
+
// Theme E-mails
|
189 |
+
|
190 |
+
apply_filters( 'auto_theme_update_send_email', false, $type, $theme_update, $result );
|
191 |
+
|
192 |
+
// Remove Files From WordPress
|
193 |
+
|
194 |
+
function admin_init() {
|
195 |
+
if ( !function_exists("remove_action") ) return;
|
196 |
+
|
197 |
+
// Disable Plugin Updates
|
198 |
+
|
199 |
+
remove_action( 'load-plugins.php', 'wp_update_plugins' );
|
200 |
+
remove_action( 'load-update.php', 'wp_update_plugins' );
|
201 |
+
remove_action( 'admin_init', '_maybe_update_plugins' );
|
202 |
+
remove_action( 'wp_update_plugins', 'wp_update_plugins' );
|
203 |
+
wp_clear_scheduled_hook( 'wp_update_plugins' );
|
204 |
|
205 |
+
remove_action( 'load-update-core.php', 'wp_update_plugins' );
|
206 |
+
wp_clear_scheduled_hook( 'wp_update_plugins' );
|
207 |
+
|
208 |
+
// Disable Theme Updates
|
209 |
+
|
210 |
+
remove_action( 'load-themes.php', 'wp_update_themes' );
|
211 |
+
remove_action( 'load-update.php', 'wp_update_themes' );
|
212 |
+
remove_action( 'admin_init', '_maybe_update_themes' );
|
213 |
+
remove_action( 'wp_update_themes', 'wp_update_themes' );
|
214 |
+
wp_clear_scheduled_hook( 'wp_update_themes' );
|
215 |
+
|
216 |
+
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
217 |
+
wp_clear_scheduled_hook( 'wp_update_themes' );
|
218 |
+
|
219 |
+
// Disable Core Updates
|
220 |
|
221 |
+
remove_action( 'wp_version_check', 'wp_version_check' );
|
222 |
+
remove_action( 'admin_init', '_maybe_update_core' );
|
223 |
+
wp_clear_scheduled_hook( 'wp_version_check' );
|
224 |
|
225 |
+
wp_clear_scheduled_hook( 'wp_version_check' );
|
226 |
}
|
227 |
+
|
228 |
+
// Remove Updates Agian (just in case)
|
229 |
+
|
230 |
+
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
|
231 |
+
|
232 |
+
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
|
233 |
+
add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
|
234 |
+
|
235 |
+
remove_action( 'wp_version_check', 'wp_version_check' );
|
236 |
+
remove_action( 'admin_init', '_maybe_update_core' );
|
237 |
+
add_filter( 'pre_transient_update_core', create_function( '$a', "return null;" ) );
|
238 |
+
|
239 |
+
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
|
240 |
+
|
241 |
+
remove_action( 'load-themes.php', 'wp_update_themes' );
|
242 |
+
remove_action( 'load-update.php', 'wp_update_themes' );
|
243 |
+
remove_action( 'admin_init', '_maybe_update_themes' );
|
244 |
+
remove_action( 'wp_update_themes', 'wp_update_themes' );
|
245 |
+
add_filter( 'pre_transient_update_themes', create_function( '$a', "return null;" ) );
|
246 |
+
|
247 |
+
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
248 |
+
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
|
249 |
+
|
250 |
+
add_action( 'admin_menu', create_function( '$a', "remove_action( 'load-plugins.php', 'wp_update_plugins' );") );
|
251 |
+
|
252 |
+
add_action( 'admin_init', create_function( '$a', "remove_action( 'admin_init', 'wp_update_plugins' );"), 2 );
|
253 |
+
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_update_plugins' );"), 2 );
|
254 |
+
add_filter( 'pre_option_update_plugins', create_function( '$a', "return null;" ) );
|
255 |
+
|
256 |
+
remove_action( 'load-plugins.php', 'wp_update_plugins' );
|
257 |
+
remove_action( 'load-update.php', 'wp_update_plugins' );
|
258 |
+
remove_action( 'admin_init', '_maybe_update_plugins' );
|
259 |
+
remove_action( 'wp_update_plugins', 'wp_update_plugins' );
|
260 |
+
add_filter( 'pre_transient_update_plugins', create_function( '$a', "return null;" ) );
|
261 |
+
|
262 |
+
remove_action( 'load-update-core.php', 'wp_update_plugins' );
|
263 |
+
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
|
264 |
|
265 |
+
|
266 |
break;
|
267 |
|
268 |
}
|
274 |
|
275 |
// Check if user can access to the plugin
|
276 |
if (!current_user_can('update_core'))
|
277 |
+
wp_die( __('You do not have permissions to access this page.') );
|
278 |
|
279 |
?>
|
280 |
|
281 |
+
<div class="wrap">
|
282 |
+
<h2><?php _e('Disable Updates Manager Settings','disable-updates-manager'); ?></h2>
|
283 |
|
284 |
<form method="post" action="options.php">
|
285 |
|
288 |
<table class="form-table">
|
289 |
|
290 |
<tr>
|
|
|
291 |
<td>
|
292 |
<fieldset>
|
293 |
+
<div class="postbox">
|
294 |
+
<h3> Disable All Updates <small>(Same function as versions less than 1.9.0)</small></h3>
|
295 |
+
<div class="inside">
|
296 |
+
<label for="all_notify">
|
297 |
+
<input type="checkbox" <?php checked(1, (int)$this->status['all'], true); ?> value="1" id="all_notify" name="_disable_updates[all]"> <?php _e('Disable All Updates', 'disable-updates-manager') ?>
|
298 |
+
</label>
|
299 |
+
</div>
|
300 |
+
</div>
|
301 |
+
</fieldset>
|
302 |
+
</td>
|
303 |
+
</tr>
|
304 |
+
|
305 |
+
<tr>
|
306 |
+
<td>
|
307 |
+
<fieldset>
|
308 |
+
<div class="postbox">
|
309 |
+
<h3> Disable Updates</h3>
|
310 |
+
<div class="inside">
|
311 |
<label for="plugins_notify">
|
312 |
<input type="checkbox" <?php checked(1, (int)$this->status['plugin'], true); ?> value="1" id="plugins_notify" name="_disable_updates[plugin]"> <?php _e('Disable Plugin Updates', 'disable-updates-manager') ?>
|
313 |
</label>
|
319 |
<label for="core_notify">
|
320 |
<input type="checkbox" <?php checked(1, (int)$this->status['core'], true); ?> value="1" id="core_notify" name="_disable_updates[core]"> <?php _e('Disable WordPress Core Update', 'disable-updates-manager') ?>
|
321 |
</label>
|
322 |
+
</div>
|
323 |
+
</div>
|
324 |
</fieldset>
|
325 |
</td>
|
326 |
</tr>
|
327 |
|
328 |
<tr>
|
|
|
329 |
<td>
|
330 |
<fieldset>
|
331 |
+
<div class="postbox">
|
332 |
+
<h3> Other Settings</h3>
|
333 |
+
<div class="inside">
|
334 |
<label for="page_notify">
|
335 |
<input type="checkbox" <?php checked(1, (int)$this->status['page'], true); ?> value="1" id="page_notify" name="_disable_updates[page]"> <?php _e('Remove Updates Page (Under Dashboard)', 'disable-updates-manager') ?>
|
336 |
</label>
|
337 |
+
</div>
|
338 |
+
</div>
|
|
|
|
|
339 |
</fieldset>
|
340 |
</td>
|
341 |
</tr>
|
lang/default.mo.txt
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
# Find PO files, process each with msgfmt and rename the result to MO
|
2 |
-
for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file ; done
|
3 |
-
|
|
|
|
|
|
readme.txt
CHANGED
@@ -33,12 +33,8 @@ With the newest versions of Disable Updates Manager (formerly called "Disable Al
|
|
33 |
[youtube http://www.youtube.com/watch?v=ESOSt_ebiwM]
|
34 |
|
35 |
= Just Won't to Disable One or Two? =
|
36 |
-
|
37 |
-
Just check the things you won't disabled
|
38 |
-
|
39 |
-
= Check Out Our Newest Plugin! =
|
40 |
-
<li><a href="http://wordpress.org/plugins/remove-the-updates-submenu/">Remove the Updates Submenu</a></li>
|
41 |
-
It removes the updates submenu.
|
42 |
|
43 |
== Frequently Asked Questions ==
|
44 |
|
@@ -63,7 +59,8 @@ It is very important to keep your WordPress plugins, core, and themes up to date
|
|
63 |
If you use this plugin, make sure your plugins are not harming your website.`
|
64 |
|
65 |
= No Downloads For Some Versions =
|
66 |
-
If you were wondering why their are no downloads available for some of our this plugins versions, its because the versions are full of bugs.
|
|
|
67 |
== Screenshots ==
|
68 |
1. Before View Core (Dashboard)
|
69 |
4. Before View Plugin (Plugin Page)
|
@@ -72,7 +69,9 @@ If you were wondering why their are no downloads available for some of our this
|
|
72 |
3. After View (Dashboard)
|
73 |
6. Settings Page (Disable All Updates)
|
74 |
|
75 |
-
== Installation ==
|
|
|
|
|
76 |
|
77 |
Their are three way to install Disable All Updates.
|
78 |
|
@@ -106,14 +105,37 @@ Their are three way to install Disable All Updates.
|
|
106 |
<li>Go to your plugin page in your dashboard and activate the plugin called "Disable All Updates.</li>
|
107 |
</ol>
|
108 |
|
109 |
-
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
-
= Versions Available for Downloading =
|
112 |
-
= 2.4.0 =
|
113 |
-
* Plugin Name Changed (Disable Updates Manager)
|
114 |
-
* Tags Updated (Make it easier to find this plugin)
|
115 |
* Fixed Some HTML
|
116 |
-
|
|
|
|
|
117 |
|
118 |
= 2.3.0 =
|
119 |
* Remove File Setting Added
|
33 |
[youtube http://www.youtube.com/watch?v=ESOSt_ebiwM]
|
34 |
|
35 |
= Just Won't to Disable One or Two? =
|
36 |
+
With the new settings form under dashboard, it easy.
|
37 |
+
Just check the things you won't disabled.
|
|
|
|
|
|
|
|
|
38 |
|
39 |
== Frequently Asked Questions ==
|
40 |
|
59 |
If you use this plugin, make sure your plugins are not harming your website.`
|
60 |
|
61 |
= No Downloads For Some Versions =
|
62 |
+
If you were wondering why their are no downloads available for some of our this plugins versions, its because the versions are full of bugs.
|
63 |
+
|
64 |
== Screenshots ==
|
65 |
1. Before View Core (Dashboard)
|
66 |
4. Before View Plugin (Plugin Page)
|
69 |
3. After View (Dashboard)
|
70 |
6. Settings Page (Disable All Updates)
|
71 |
|
72 |
+
== Installation ==
|
73 |
+
|
74 |
+
|
75 |
|
76 |
Their are three way to install Disable All Updates.
|
77 |
|
105 |
<li>Go to your plugin page in your dashboard and activate the plugin called "Disable All Updates.</li>
|
106 |
</ol>
|
107 |
|
108 |
+
== Changelog ==
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
+
= Versions Available for Downloading =
|
113 |
+
|
114 |
+
= 2.5.0 =
|
115 |
+
|
116 |
+
= Settings in Dashboard =
|
117 |
+
* Added Postboxes
|
118 |
+
* Remove Delete Files Setting
|
119 |
+
* Added Disable All Updates Setting
|
120 |
+
* Renamed Name on Settings Page
|
121 |
+
|
122 |
+
= HTML =
|
123 |
+
* HTML Notes Updated
|
124 |
+
* Delete Translation .mo File
|
125 |
+
|
126 |
+
= Readme.txt =
|
127 |
+
* Readme.txt Updated
|
128 |
+
|
129 |
+
= 2.4.0 =
|
130 |
+
|
131 |
+
* Plugin Name Changed (Disable Updates Manager)
|
132 |
+
|
133 |
+
* Tags Updated (Make it easier to find this plugin)
|
134 |
|
|
|
|
|
|
|
|
|
135 |
* Fixed Some HTML
|
136 |
+
|
137 |
+
* Added Translation (Test)
|
138 |
+
|
139 |
|
140 |
= 2.3.0 =
|
141 |
* Remove File Setting Added
|