Easy Updates Manager - Version 3.0.0

Version Description

  • Updated Readme.txt Description
  • Removed "Other Notes" in Readme.txt
  • Added More Readme.txt Tags
  • Added "Disable Debug E-mails" Setting
  • Added "Disable Update E-mails" Setting
  • Added "Disable WordPress Automatic Updates" Setting
  • Added "Remove WordPress Core Version" Setting
  • Added "Please Note" Postbox
  • Combined "Disable All Updates" Postbox with "Disable Updates" Postbox
  • Fixed Half Screen Display
  • Removed Language Translate (didn't work)
Download this release

Release Info

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

Code changes from version 2.7.0 to 3.0.0

Files changed (3) hide show
  1. Function.php +88 -50
  2. lang/default.po.txt +0 -64
  3. readme.txt +17 -12
Function.php CHANGED
@@ -2,18 +2,17 @@
2
  /**
3
  * @package Disable Updates Manager
4
  * @author Websiteguy
5
- * @version 2.7.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.7.0
11
- Description: Pick which type of updates you would like to disable. Just use are new settings forum.
12
  Author: Websiteguy
13
  Author URI: http://profiles.wordpress.org/kidsguide/
14
  Tested up to WordPress 3.8.
15
- */
16
- /*
17
  @Copyright 2014 Websiteguy (email : mpsparrow@cogeco.ca)
18
 
19
  This program is free software; you can redistribute it and/or modify
@@ -30,6 +29,8 @@ along with this program; if not, write to the Free Software
30
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
  */
32
 
 
 
33
  class Disable_Updates {
34
  // Set status in array
35
  private $status = array();
@@ -39,10 +40,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
39
 
40
  function Disable_Updates() {
41
 
42
- // Add translations
43
- if (function_exists('load_plugin_textdomain'))
44
- load_plugin_textdomain( 'disable-updates-manager', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/');
45
-
46
  // Add menu page
47
  add_action('admin_menu', array(&$this, 'add_submenu'));
48
 
@@ -160,25 +157,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
160
  remove_action( 'admin_notices', 'update_nag', 3 );
161
  }
162
 
163
- // Turns off Automatic Updates in WordPress
164
-
165
- define( 'Automatic_Updater_Disabled', true );
166
- define('WP_AUTO_UPDATE_CORE', false);
167
-
168
- // Removes Update E-mails (Only works with some plugins)
169
-
170
- // Core E-mails
171
-
172
- apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );
173
-
174
- // Plugin E-mails
175
-
176
- apply_filters( 'auto_plugin_update_send_email', false, $type, $plugin_update, $result );
177
-
178
- // Theme E-mails
179
-
180
- apply_filters( 'auto_theme_update_send_email', false, $type, $theme_update, $result );
181
-
182
  // Remove Files From WordPress
183
 
184
  function admin_init() {
@@ -255,6 +233,51 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
255
 
256
  break;
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  }
259
  }
260
  }
@@ -276,28 +299,17 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
276
  <?php settings_fields('_disable_updates'); ?>
277
 
278
  <table class="form-table">
279
-
280
  <tr>
281
  <td>
282
  <fieldset>
283
  <div class="postbox">
284
- <h3>&nbsp;Disable All Updates</h3>
285
  <div class="inside">
286
  <label for="all_notify">
287
  <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') ?>
288
  </label>
289
- </div>
290
- </div>
291
- </fieldset>
292
- </td>
293
- </tr>
294
-
295
- <tr>
296
- <td>
297
- <fieldset>
298
- <div class="postbox">
299
- <h3>&nbsp;Disable Updates <small>(All settings under here included in Disable All Updates setting above.)</small></h3>
300
- <div class="inside">
301
  <label for="plugins_notify">
302
  <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') ?>
303
  </label>
@@ -309,12 +321,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
309
  <label for="core_notify">
310
  <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') ?>
311
  </label>
 
312
  </div>
313
  </div>
314
  </fieldset>
315
  </td>
316
  </tr>
317
-
318
  <tr>
319
  <td>
320
  <fieldset>
@@ -324,28 +337,54 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
324
  <label for="page_notify">
325
  <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') ?>
326
  </label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
327
  </div>
328
  </div>
329
  </fieldset>
330
  </td>
331
  </tr>
332
-
333
  <tr>
334
  <td>
335
- <fieldset>
336
  <p class="submit">
337
  <input type="submit" class="button-primary" value="<?php _e('Update Settings') ?>" />
338
  </p>
339
- </fieldset>
340
  </td>
341
  </tr>
342
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  </table>
344
-
345
  </form>
346
 
347
  </div>
348
-
349
  <?php
350
  }
351
  }
@@ -362,7 +401,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
362
  // Create links
363
  if ( $file == $plugin ) {
364
  return array_merge(
365
- $links,
366
  array( '<a href="http://www.wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a>' ),
367
  array( '<a href="http://www.wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>' ),
368
  array( '<a href="http://www.youtube.com/watch?v=ESOSt_ebiwM">Tutorial</a>' )
@@ -371,7 +410,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
371
  return $links;
372
  }
373
 
374
-
375
  // Add Settings Link
376
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'thsp_plugin_action_links' );
377
 
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
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
36
  private $status = array();
40
 
41
  function Disable_Updates() {
42
 
 
 
 
 
43
  // Add menu page
44
  add_action('admin_menu', array(&$this, 'add_submenu'));
45
 
157
  remove_action( 'admin_notices', 'update_nag', 3 );
158
  }
159
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  // Remove Files From WordPress
161
 
162
  function admin_init() {
233
 
234
  break;
235
 
236
+ // Remove WordPress Version Number
237
+ case 'wpv' :
238
+
239
+ add_filter('admin_footer_text', 'replace_footer_admin');
240
+ function replace_footer_version()
241
+ {
242
+ return ' ';
243
+ }
244
+
245
+ add_filter( 'update_footer', 'replace_footer_version', '1234');
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
  }
299
  <?php settings_fields('_disable_updates'); ?>
300
 
301
  <table class="form-table">
 
302
  <tr>
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') ?>
310
  </label>
311
+ <br>
312
+ <span style="padding-left: 20px; display:block">
 
 
 
 
 
 
 
 
 
 
313
  <label for="plugins_notify">
314
  <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') ?>
315
  </label>
321
  <label for="core_notify">
322
  <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') ?>
323
  </label>
324
+ </span>
325
  </div>
326
  </div>
327
  </fieldset>
328
  </td>
329
  </tr>
330
+
331
  <tr>
332
  <td>
333
  <fieldset>
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>
381
+
382
  </table>
383
+
384
  </form>
385
 
386
  </div>
387
+
388
  <?php
389
  }
390
  }
401
  // Create links
402
  if ( $file == $plugin ) {
403
  return array_merge(
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>' )
410
  return $links;
411
  }
412
 
 
413
  // Add Settings Link
414
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'thsp_plugin_action_links' );
415
 
lang/default.po.txt DELETED
@@ -1,64 +0,0 @@
1
- # Copyright (C) 2014
2
- # This file is distributed under the same license as the package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: \n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/stops-core-theme-and-plugin-"
7
- "updates\n"
8
- "POT-Creation-Date: 2014-01-06 14:18:55+00:00\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
-
16
- #: Function.php:75
17
- msgid "Disable Updates"
18
- msgstr ""
19
-
20
- #: Function.php:189
21
- msgid "You do not have sufficient permissions to access this page."
22
- msgstr ""
23
-
24
- #: Function.php:194
25
- msgid "Disable All Updates Settings"
26
- msgstr ""
27
-
28
- #: Function.php:204 Function.php:245
29
- msgid "Save"
30
- msgstr ""
31
-
32
- #: Function.php:205 Function.php:208
33
- msgid "Disable Updates:"
34
- msgstr ""
35
-
36
- #: Function.php:210
37
- msgid "Disable Plugin Updates"
38
- msgstr ""
39
-
40
- #: Function.php:214
41
- msgid "Disable Theme Updates"
42
- msgstr ""
43
-
44
- #: Function.php:218
45
- msgid "Disable WordPress Core Update"
46
- msgstr ""
47
-
48
- #: Function.php:225 Function.php:228
49
- msgid "Other Settings:"
50
- msgstr ""
51
-
52
- #: Function.php:231
53
- msgid "Remove Updates Page (Under Dashboard)"
54
- msgstr ""
55
-
56
- #: Function.php:235
57
- msgid ""
58
- "Removes Updates Files (Note: Only use this setting if you are disabling all "
59
- "the updates)"
60
- msgstr ""
61
-
62
- #: Function.php:296
63
- msgid "Settings"
64
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,6 +1,6 @@
1
  === Disable Updates Manager ===
2
  Contributors: kidsguide
3
- Tags: Disable All Updates, Disable Plugin Updates, Disable Theme Updates, Disable WordPress Core Updates, Disable Updates Settings, Disable Updates, Disable All WordPress Updates, Disable All WordPress Updates Settings, Disable Updates Manager, Disable All Updates Manager
4
  Requires at least: 3.0
5
  Tested up to: 3.8
6
  Stable tag: trunk
@@ -13,9 +13,10 @@ 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.</li>
17
- <li>Disables WordPress automatic updates.</li>
18
  <li>Disables update e-mails</li>
 
19
  <li>Has a link to Support, FAQ, Settings, and the Tutorial in the plugin page</li>
20
  </ol>
21
 
@@ -38,12 +39,6 @@ A: Their are a couple of differences.
38
  = Q: If I remove this plugin from my website will I be able to update my plugins, themes, and WordPress core again? =
39
  A: Yes, this plugin just disables the update (not removes).
40
 
41
- == ==
42
-
43
- = Please note!!! =
44
- It is very important to keep your plugins, themes, and WordPress core up to date.
45
- If you use this plugin, make sure your WordPress core (themes, and plugins also) are not harming your website.
46
-
47
  == Screenshots ==
48
  1. Before View Core (Dashboard)
49
  4. Before View Plugin (Plugin Page)
@@ -87,6 +82,19 @@ Their are three way to install Disable All Updates.
87
 
88
  == Changelog ==
89
  = Versions Available for Downloading =
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  = 2.7.0 =
91
  * Updated Readme.txt Description
92
  * Fixed <small> function in settings.
@@ -101,7 +109,6 @@ Their are three way to install Disable All Updates.
101
  * HTML Notes Updated
102
  * Fixed Changelog Errors
103
  * Updated Description
104
-
105
 
106
  = 2.5.0 =
107
  * Added Postboxes
@@ -198,8 +205,6 @@ Their are three way to install Disable All Updates.
198
  * Updated Readme.txt
199
  * Works with WordPress 3.8
200
 
201
- = Not Available for Downloading =
202
-
203
  = 0.1 =
204
  * Published on Wordpress.org
205
  (September 1, 2013)
1
  === Disable Updates Manager ===
2
  Contributors: kidsguide
3
+ Tags: Disable All Updates, Disable Plugin Updates, Disable Theme Updates, Disable WordPress Core Updates, Disable Core Updates, Disable Updates Settings, Disable Updates, Disable All WordPress Updates, Disable All WordPress Updates Settings, Disable Updates Manager, Disable All Updates Manager, Disable Updates Manager Settings
4
  Requires at least: 3.0
5
  Tested up to: 3.8
6
  Stable tag: trunk
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
 
39
  = Q: If I remove this plugin from my website will I be able to update my plugins, themes, and WordPress core again? =
40
  A: Yes, this plugin just disables the update (not removes).
41
 
 
 
 
 
 
 
42
  == Screenshots ==
43
  1. Before View Core (Dashboard)
44
  4. Before View Plugin (Plugin Page)
82
 
83
  == Changelog ==
84
  = Versions Available for Downloading =
85
+ = 3.0.0 =
86
+ * Updated Readme.txt Description
87
+ * Removed "Other Notes" in Readme.txt
88
+ * Added More Readme.txt Tags
89
+ * Added "Disable Debug E-mails" Setting
90
+ * Added "Disable Update E-mails" Setting
91
+ * Added "Disable WordPress Automatic Updates" Setting
92
+ * Added "Remove WordPress Core Version" Setting
93
+ * Added "Please Note" Postbox
94
+ * Combined "Disable All Updates" Postbox with "Disable Updates" Postbox
95
+ * Fixed Half Screen Display
96
+ * Removed Language Translate <small>(didn't work)</small>
97
+
98
  = 2.7.0 =
99
  * Updated Readme.txt Description
100
  * Fixed <small> function in settings.
109
  * HTML Notes Updated
110
  * Fixed Changelog Errors
111
  * Updated Description
 
112
 
113
  = 2.5.0 =
114
  * Added Postboxes
205
  * Updated Readme.txt
206
  * Works with WordPress 3.8
207
 
 
 
208
  = 0.1 =
209
  * Published on Wordpress.org
210
  (September 1, 2013)