Easy Updates Manager - Version 3.1.0

Version Description

  • Added "Disable Automatic Background Updates" Setting
  • Removed "Please Note!" Postbox
  • Added "Please Note" Notice in Settings
  • Moved Around Other Settings
  • Screenshots Updated
  • Removed Settings (combined into "Disable All Updates" setting)
  • Fixed "Other Settings" Postbox "" Code for Settings
  • Updated Video Tutorial (using version 3.1.0)
Download this release

Release Info

Developer kidsguide
Plugin Icon 128x128 Easy Updates Manager
Version 3.1.0
Comparing to
See all releases

Code changes from version 3.0.0 to 3.1.0

Files changed (2) hide show
  1. Function.php +56 -75
  2. readme.txt +19 -9
Function.php CHANGED
@@ -2,18 +2,21 @@
2
  /**
3
  * @package Disable Updates Manager
4
  * @author Websiteguy
5
- * @version 3.0.0
6
  */
7
  /*
8
  Plugin Name: Disable Updates Manager
9
  Plugin URI: http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
10
- Version: 3.0.0
11
  Description: Pick which type of updates you would like to disable. Just use are settings forum.
12
  Author: Websiteguy
13
  Author URI: http://profiles.wordpress.org/kidsguide/
14
  Tested up to WordPress 3.8.
 
 
15
  License:
16
- @Copyright 2014 Websiteguy (email : mpsparrow@cogeco.ca)
 
17
 
18
  This program is free software; you can redistribute it and/or modify
19
  it under the terms of the GNU General Public License, version 2, as
@@ -29,7 +32,7 @@ along with this program; if not, write to the Free Software
29
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
  */
31
 
32
- define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
33
 
34
  class Disable_Updates {
35
  // Set status in array
@@ -135,17 +138,17 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
135
 
136
  // Disable All Updates
137
 
138
- // Disable Plugin Updates
139
 
140
  remove_action( 'load-update-core.php', 'wp_update_plugins' );
141
  add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
142
 
143
- // Disable Theme Updates
144
 
145
  remove_action( 'load-update-core.php', 'wp_update_themes' );
146
  add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
147
 
148
- // Disable Core Updates
149
 
150
  remove_action( 'load-update-core.php', 'wp_update_core' );
151
  add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
@@ -162,7 +165,7 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
162
  function admin_init() {
163
  if ( !function_exists("remove_action") ) return;
164
 
165
- // Disable Plugin Updates
166
 
167
  remove_action( 'load-plugins.php', 'wp_update_plugins' );
168
  remove_action( 'load-update.php', 'wp_update_plugins' );
@@ -173,7 +176,7 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
173
  remove_action( 'load-update-core.php', 'wp_update_plugins' );
174
  wp_clear_scheduled_hook( 'wp_update_plugins' );
175
 
176
- // Disable Theme Updates
177
 
178
  remove_action( 'load-themes.php', 'wp_update_themes' );
179
  remove_action( 'load-update.php', 'wp_update_themes' );
@@ -184,7 +187,7 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
184
  remove_action( 'load-update-core.php', 'wp_update_themes' );
185
  wp_clear_scheduled_hook( 'wp_update_themes' );
186
 
187
- // Disable Core Updates
188
 
189
  remove_action( 'wp_version_check', 'wp_version_check' );
190
  remove_action( 'admin_init', '_maybe_update_core' );
@@ -193,7 +196,7 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
193
  wp_clear_scheduled_hook( 'wp_version_check' );
194
  }
195
 
196
- // Remove Updates Agian (just in case)
197
 
198
  add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
199
 
@@ -230,6 +233,25 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
230
  remove_action( 'load-update-core.php', 'wp_update_plugins' );
231
  add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
 
234
  break;
235
 
@@ -246,39 +268,10 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
246
 
247
  break;
248
 
249
- // Disable Debug E-mails
250
- case 'debug' :
251
-
252
- add_filter( 'automatic_updates_send_debug_email ', '__return_false', 1 );
253
-
254
- break;
255
-
256
- // Disable Update E-mails (Only works with some plugins)
257
- case 'autoe' :
258
-
259
- // Core E-mails
260
-
261
- apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );
262
-
263
- // Plugin E-mails
264
-
265
- apply_filters( 'auto_plugin_update_send_email', false, $type, $plugin_update, $result );
266
-
267
- // Theme E-mails
268
-
269
- apply_filters( 'auto_theme_update_send_email', false, $type, $theme_update, $result );
270
-
271
- break;
272
-
273
- // Disable Automatic WordPress Updates
274
- case 'autoup' :
275
-
276
- define( 'Automatic_Updater_Disabled', true );
277
- define('WP_AUTO_UPDATE_CORE', false);
278
-
279
- break;
280
-
281
- }
282
  }
283
  }
284
 
@@ -303,7 +296,7 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
303
  <td>
304
  <fieldset>
305
  <div class="postbox">
306
- <h3>&nbsp;Disable Updates</h3>
307
  <div class="inside">
308
  <label for="all_notify">
309
  <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 <small>(Not including the settings under "Other Settings")</small>', 'disable-updates-manager') ?>
@@ -332,49 +325,37 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
332
  <td>
333
  <fieldset>
334
  <div class="postbox">
335
- <h3>&nbsp;Other Settings</h3>
336
  <div class="inside">
337
- <label for="page_notify">
338
- <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 <small>(Under Dashboard)</small>', 'disable-updates-manager') ?>
339
- </label>
340
- <br>
341
- <label for="autoup_notify">
342
- <input type="checkbox" <?php checked(1, (int)$this->status['autoup'], true); ?> value="1" id="autoup_notify" name="_disable_updates[autoup]"> <?php _e('Disable WordPress Automatic Updates', 'disable-updates-manager') ?>
343
- </label>
344
- <br>
345
- <label for="debug_notify">
346
- <input type="checkbox" <?php checked(1, (int)$this->status['debug'], true); ?> value="1" id="debug_notify" name="_disable_updates[debug]"> <?php _e('Disable Debug E-mails', 'disable-updates-manager') ?>
347
  </label>
348
- <br>
349
- <label for="autoe_notify">
350
- <input type="checkbox" <?php checked(1, (int)$this->status['autoe'], true); ?> value="1" id="autoe_notify" name="_disable_updates[autoe]"> <?php _e('Disable Update E-mails', 'disable-updates-manager') ?>
351
- </label>
352
- <br>
353
  <label for="wpv_notify">
354
  <input type="checkbox" <?php checked(1, (int)$this->status['wpv'], true); ?> value="1" id="wpv_notify" name="_disable_updates[wpv]"> <?php _e('Remove WordPress Core Version <small>(For All Users)</small>', 'disable-updates-manager') ?>
355
  </label>
 
 
 
 
 
356
  </div>
357
  </div>
358
- </fieldset>
359
- </td>
360
- </tr>
361
-
362
- <tr>
363
- <td>
364
  <p class="submit">
365
  <input type="submit" class="button-primary" value="<?php _e('Update Settings') ?>" />
366
  </p>
367
- </td>
368
- </tr>
 
369
 
370
  <tr>
371
  <br>
372
- <div class="postbox">
373
- <h3>&nbsp;Please Note!</h3>
374
- <div class="inside">
375
  <p align="center">
376
- If either your WordPress core, theme, or plugins get to out of date, you may run into compatibility problems.
377
- </p>
 
378
  </div>
379
  </div>
380
  </tr>
@@ -404,7 +385,7 @@ define("DISABLEUPDATESMANAGERVERSION", "3.0.0");
404
  $links,
405
  array( '<a href="http://www.wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a>' ),
406
  array( '<a href="http://www.wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>' ),
407
- array( '<a href="http://www.youtube.com/watch?v=ESOSt_ebiwM">Tutorial</a>' )
408
  );
409
  }
410
  return $links;
2
  /**
3
  * @package Disable Updates Manager
4
  * @author Websiteguy
5
+ * @version 3.1.0
6
  */
7
  /*
8
  Plugin Name: Disable Updates Manager
9
  Plugin URI: http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
10
+ Version: 3.1.0
11
  Description: Pick which type of updates you would like to disable. Just use are settings forum.
12
  Author: Websiteguy
13
  Author URI: http://profiles.wordpress.org/kidsguide/
14
  Tested up to WordPress 3.8.
15
+ */
16
+ /*
17
  License:
18
+
19
+ @Copyright 2013 - 2014 Websiteguy (email : mpsparrow@cogeco.ca)
20
 
21
  This program is free software; you can redistribute it and/or modify
22
  it under the terms of the GNU General Public License, version 2, as
32
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
33
  */
34
 
35
+ define("DISABLEUPDATESMANAGERVERSION", "3.1.0");
36
 
37
  class Disable_Updates {
38
  // Set status in array
138
 
139
  // Disable All Updates
140
 
141
+ // Disable Plugin Updates Only
142
 
143
  remove_action( 'load-update-core.php', 'wp_update_plugins' );
144
  add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
145
 
146
+ // Disable Theme Updates Only
147
 
148
  remove_action( 'load-update-core.php', 'wp_update_themes' );
149
  add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
150
 
151
+ // Disable Core Updates Only
152
 
153
  remove_action( 'load-update-core.php', 'wp_update_core' );
154
  add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
165
  function admin_init() {
166
  if ( !function_exists("remove_action") ) return;
167
 
168
+ // Disable Plugin Updates Only
169
 
170
  remove_action( 'load-plugins.php', 'wp_update_plugins' );
171
  remove_action( 'load-update.php', 'wp_update_plugins' );
176
  remove_action( 'load-update-core.php', 'wp_update_plugins' );
177
  wp_clear_scheduled_hook( 'wp_update_plugins' );
178
 
179
+ // Disable Theme Updates Only
180
 
181
  remove_action( 'load-themes.php', 'wp_update_themes' );
182
  remove_action( 'load-update.php', 'wp_update_themes' );
187
  remove_action( 'load-update-core.php', 'wp_update_themes' );
188
  wp_clear_scheduled_hook( 'wp_update_themes' );
189
 
190
+ // Disable Core Updates Only
191
 
192
  remove_action( 'wp_version_check', 'wp_version_check' );
193
  remove_action( 'admin_init', '_maybe_update_core' );
196
  wp_clear_scheduled_hook( 'wp_version_check' );
197
  }
198
 
199
+ // Remove Updates Again (different method)
200
 
201
  add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
202
 
233
  remove_action( 'load-update-core.php', 'wp_update_plugins' );
234
  add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
235
 
236
+
237
+ // Disable Debug E-mails
238
+ add_filter( 'automatic_updates_send_debug_email ', '__return_false', 1 );
239
+
240
+ // Disable WordPress Automatic Updates
241
+ define( 'Automatic_Updater_Disabled', true );
242
+ define('WP_AUTO_UPDATE_CORE', false);
243
+
244
+ // Disable Updates E-mails
245
+
246
+ // Core E-mails Only
247
+ apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );
248
+
249
+ // Plugin E-mails Only
250
+ apply_filters( 'auto_plugin_update_send_email', false, $type, $plugin_update, $result );
251
+
252
+ // Theme E-mails Only
253
+ apply_filters( 'auto_theme_update_send_email', false, $type, $theme_update, $result );
254
+
255
 
256
  break;
257
 
268
 
269
  break;
270
 
271
+ case 'abup' :
272
+ wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
273
+ break;
274
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  }
276
  }
277
 
296
  <td>
297
  <fieldset>
298
  <div class="postbox">
299
+ <H3>&nbsp;Disable Updates</H3>
300
  <div class="inside">
301
  <label for="all_notify">
302
  <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 <small>(Not including the settings under "Other Settings")</small>', 'disable-updates-manager') ?>
325
  <td>
326
  <fieldset>
327
  <div class="postbox">
328
+ <H3>&nbsp;Other Settings</H3>
329
  <div class="inside">
330
+ <span style="padding-left: 0px; display:block">
331
+ <label for="abup_notify">
332
+ <input type="checkbox" <?php checked(1, (int)$this->status['abup'], true); ?> value="1" id="abup_notify" name="_disable_updates[abup]"> <?php _e('Disable Automatic Background Updates', 'disable-updates-manager') ?>
 
 
 
 
 
 
 
333
  </label>
334
+ <br>
 
 
 
 
335
  <label for="wpv_notify">
336
  <input type="checkbox" <?php checked(1, (int)$this->status['wpv'], true); ?> value="1" id="wpv_notify" name="_disable_updates[wpv]"> <?php _e('Remove WordPress Core Version <small>(For All Users)</small>', 'disable-updates-manager') ?>
337
  </label>
338
+ <br>
339
+ <label for="page_notify">
340
+ <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 <small>(Under Dashboard)</small>', 'disable-updates-manager') ?>
341
+ </label>
342
+ </span>
343
  </div>
344
  </div>
 
 
 
 
 
 
345
  <p class="submit">
346
  <input type="submit" class="button-primary" value="<?php _e('Update Settings') ?>" />
347
  </p>
348
+ </fieldset>
349
+ </td>
350
+ </tr>
351
 
352
  <tr>
353
  <br>
354
+ <span style="border-style:solid; border-width:2px; border-color:#dd0606; display:block">
 
 
355
  <p align="center">
356
+ <strong>Please Note! - </strong>If either your WordPress core, theme, or plugins get to out of date, you may run into compatibility problems.
357
+ </p>
358
+ </span>
359
  </div>
360
  </div>
361
  </tr>
385
  $links,
386
  array( '<a href="http://www.wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a>' ),
387
  array( '<a href="http://www.wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>' ),
388
+ array( '<a href="http://www.youtube.com/watch?v=jAqd0SjLQ_M">Tutorial</a>' )
389
  );
390
  }
391
  return $links;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 3.0
5
  Tested up to: 3.8
6
  Stable tag: trunk
7
 
8
- A configurable plugin that disables updates. The best in its class.
9
 
10
  == Description ==
11
  This plugin is 100% configurable! Check the updates you would like to disable in the settings page.
@@ -13,15 +13,15 @@ This plugin is 100% configurable! Check the updates you would like to disable in
13
  = Features =
14
  <ol>
15
  <li>Has a simple settings page to disable any type of update.</li>
16
- <li>Has extra settings like remove the "updates" page, remove WordPress core version, disable update e-mails, and more. </li>
17
-
18
- <li>Disables update e-mails</li>
19
-
20
  <li>Has a link to Support, FAQ, Settings, and the Tutorial in the plugin page</li>
21
  </ol>
22
 
 
 
23
  = Video Tutorial =
24
- [youtube http://www.youtube.com/watch?v=ESOSt_ebiwM]
25
 
26
  = Just Won't to Disable One or Two? =
27
  With the new settings form under dashboard, it easy.
@@ -45,7 +45,7 @@ A: Yes, this plugin just disables the update (not removes).
45
  5. After View Plugin (Plugin Page)
46
  2. Before View (Dashboard)
47
  3. After View (Dashboard)
48
- 6. Settings Page (Disable All Updates)
49
 
50
  == Installation ==
51
  Their are three way to install Disable All Updates.
@@ -82,6 +82,16 @@ Their are three way to install Disable All Updates.
82
 
83
  == Changelog ==
84
  = Versions Available for Downloading =
 
 
 
 
 
 
 
 
 
 
85
  = 3.0.0 =
86
  * Updated Readme.txt Description
87
  * Removed "Other Notes" in Readme.txt
@@ -97,7 +107,7 @@ Their are three way to install Disable All Updates.
97
 
98
  = 2.7.0 =
99
  * Updated Readme.txt Description
100
- * Fixed <small> function in settings.
101
 
102
  = 2.6.0 =
103
  * Added Better Settings Description
@@ -207,7 +217,7 @@ Their are three way to install Disable All Updates.
207
 
208
  = 0.1 =
209
  * Published on Wordpress.org
210
- (September 1, 2013)
211
 
212
  = Note =
213
  Versions 0.2 to 0.9 are not listed in this changelog.
5
  Tested up to: 3.8
6
  Stable tag: trunk
7
 
8
+ A configurable plugin that disables updates. Easy to customize with 5+ settings.
9
 
10
  == Description ==
11
  This plugin is 100% configurable! Check the updates you would like to disable in the settings page.
13
  = Features =
14
  <ol>
15
  <li>Has a simple settings page to disable any type of update.</li>
16
+ <li>Has extra settings like remove the "updates" page, or remove WordPress core version. </li>
17
+ <li>Disable All Updates setting disables update e-mails, debug e-mails, and more. </li>
 
 
18
  <li>Has a link to Support, FAQ, Settings, and the Tutorial in the plugin page</li>
19
  </ol>
20
 
21
+ To see more features view the screenshots.
22
+
23
  = Video Tutorial =
24
+ [youtube http://www.youtube.com/watch?v=jAqd0SjLQ_M]
25
 
26
  = Just Won't to Disable One or Two? =
27
  With the new settings form under dashboard, it easy.
45
  5. After View Plugin (Plugin Page)
46
  2. Before View (Dashboard)
47
  3. After View (Dashboard)
48
+ 6. Settings Page (Disable Updates Manager)
49
 
50
  == Installation ==
51
  Their are three way to install Disable All Updates.
82
 
83
  == Changelog ==
84
  = Versions Available for Downloading =
85
+ = 3.1.0 =
86
+ * Added "Disable Automatic Background Updates" Setting
87
+ * Removed "Please Note!" Postbox
88
+ * Added "Please Note" Notice in Settings
89
+ * Moved Around Other Settings
90
+ * Screenshots Updated
91
+ * Removed Settings (combined into "Disable All Updates" setting)
92
+ * Fixed "Other Settings" Postbox "<span>" Code for Settings
93
+ * Updated Video Tutorial (using version 3.1.0)
94
+
95
  = 3.0.0 =
96
  * Updated Readme.txt Description
97
  * Removed "Other Notes" in Readme.txt
107
 
108
  = 2.7.0 =
109
  * Updated Readme.txt Description
110
+ * Fixed function in settings.
111
 
112
  = 2.6.0 =
113
  * Added Better Settings Description
217
 
218
  = 0.1 =
219
  * Published on Wordpress.org
220
+ (September 1, 2013)
221
 
222
  = Note =
223
  Versions 0.2 to 0.9 are not listed in this changelog.