Easy Updates Manager - Version 3.6.0

Version Description

  • Updated: tutorial link (forgot last update).
  • Updated: notice CSS to make auto size.
  • Fixed: old name for settings page (in URL).
  • Added: style.css.
  • Added: uninstall.php.
  • Added: "Other Notes" in readme.txt.
  • Removed: CSS from function.php.
Download this release

Release Info

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

Code changes from version 3.5.0 to 3.6.0

Files changed (4) hide show
  1. Function.php +28 -36
  2. readme.txt +20 -2
  3. style.css +34 -0
  4. uninstall.php +7 -0
Function.php CHANGED
@@ -2,12 +2,12 @@
2
  /**
3
  * @package Disable Updates Manager
4
  * @author Websiteguy
5
- * @version 3.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: 3.5.0
11
  Description: Pick which type of updates you would like to disable. Just use the settings.
12
  Author: Websiteguy
13
  Author URI: http://profiles.wordpress.org/kidsguide/
@@ -35,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35
 
36
  // Define version.
37
 
38
- define("DISABLEUPDATESMANAGERVERSION", "3.5.0");
39
 
40
  class Disable_Updates {
41
  // Set status in array
@@ -43,8 +43,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
43
 
44
  // Set checkboxes in array
45
  private $checkboxes = array();
46
-
47
- function Disable_Updates() {
48
 
49
  // Add menu page.
50
  add_action('admin_menu', array(&$this, 'add_submenu'));
@@ -54,9 +54,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
54
 
55
 
56
  // load the values recorded.
57
- $this->load_disable_updates();
58
- }
 
59
 
 
60
  // Register settings.
61
  function register_setting() {
62
  register_setting('_disable_updates', '_disable_updates', array(&$this, 'validate_settings'));
@@ -75,11 +77,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
75
 
76
  function add_submenu() {
77
  // Add submenu to "Dashboard" menu.
78
- add_submenu_page( 'index.php', 'Disable Updates', __('Disable Updates','disable-updates-manager'), 'administrator', __FILE__, array(&$this, 'display_page') );
79
  }
80
 
81
-
82
- // Functions for plugin (Change in settings)
83
  function load_disable_updates() {
84
  $this->status = get_option('_disable_updates');
85
 
@@ -401,7 +402,7 @@ break;
401
  }
402
  }
403
  }
404
-
405
  // Settings page (under dashboard).
406
  function display_page() {
407
 
@@ -533,7 +534,7 @@ break;
533
  <tr>
534
  <td>
535
  <p align="center">
536
- <a href="http://wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a> | <a href="http://www.youtube.com/watch?v=jAqd0SjLQ_M">Tutorial</a> | <a href="http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>
537
  </p>
538
  </td>
539
  </tr>
@@ -541,28 +542,6 @@ break;
541
  </table>
542
  </form>
543
  </div>
544
-
545
- <style type="text/css">
546
- .showonhover {position: relative;}
547
- .showonhover .hovertext {
548
- opacity: 0;
549
- top: -99999px;
550
- position:absolute;
551
- z-index:1000;
552
- border:1px solid #ffd971;
553
- background-color:#fffdce;
554
- padding:7.5px;
555
- width:170px;
556
- font-size: 0.90em;
557
- -webkit-transition: opacity 0.3s ease;
558
- -moz-transition: opacity 0.3s ease;
559
- -o-transition: opacity 0.3s ease;
560
- transition: opacity 0.3s ease;
561
- }
562
- .showonhover:hover .hovertext {opacity:1;top:0;}
563
- a.viewdescription {color:#999;}
564
- a.viewdescription:hover {background-color:#999; color: White;}
565
- </style>
566
 
567
  <?php
568
  }
@@ -583,7 +562,7 @@ break;
583
  $links,
584
  array( '<a href="http://www.wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a>' ),
585
  array( '<a href="http://www.wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>' ),
586
- array( '<a href="http://www.youtube.com/watch?v=jAqd0SjLQ_M">Tutorial</a>' )
587
  );
588
  }
589
  return $links;
@@ -597,4 +576,17 @@ break;
597
  return array_merge(
598
  array('settings' => '<a href="' . admin_url( 'index.php?page=stops-core-theme-and-plugin-updates/Function.php' ) . '">' . __( 'Configure', 'ts-fab' ) . '</a>'),
599
  $links);
600
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /**
3
  * @package Disable Updates Manager
4
  * @author Websiteguy
5
+ * @version 3.6.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.6.0
11
  Description: Pick which type of updates you would like to disable. Just use the settings.
12
  Author: Websiteguy
13
  Author URI: http://profiles.wordpress.org/kidsguide/
35
 
36
  // Define version.
37
 
38
+ define("DISABLEUPDATESMANAGERVERSION", "3.6.0");
39
 
40
  class Disable_Updates {
41
  // Set status in array
43
 
44
  // Set checkboxes in array
45
  private $checkboxes = array();
46
+
47
+ function Disable_Updates() {
48
 
49
  // Add menu page.
50
  add_action('admin_menu', array(&$this, 'add_submenu'));
54
 
55
 
56
  // load the values recorded.
57
+ $this->load_disable_updates();
58
+ }
59
+
60
 
61
+
62
  // Register settings.
63
  function register_setting() {
64
  register_setting('_disable_updates', '_disable_updates', array(&$this, 'validate_settings'));
77
 
78
  function add_submenu() {
79
  // Add submenu to "Dashboard" menu.
80
+ add_submenu_page( 'index.php', 'Disable Updates', __('Disable Updates','disable-updates-manager'), 'administrator', __FILE__, array(&$this, 'display_page') );
81
  }
82
 
83
+ // Functions for plugin (Change in settings)
 
84
  function load_disable_updates() {
85
  $this->status = get_option('_disable_updates');
86
 
402
  }
403
  }
404
  }
405
+
406
  // Settings page (under dashboard).
407
  function display_page() {
408
 
534
  <tr>
535
  <td>
536
  <p align="center">
537
+ <a href="http://wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a> | <a href="http://www.youtube.com/watch?v=7sMEBGNxhwA">Tutorial</a> | <a href="http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>
538
  </p>
539
  </td>
540
  </tr>
542
  </table>
543
  </form>
544
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
 
546
  <?php
547
  }
562
  $links,
563
  array( '<a href="http://www.wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a>' ),
564
  array( '<a href="http://www.wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>' ),
565
+ array( '<a href="http://www.youtube.com/watch?v=7sMEBGNxhwA">Tutorial</a>' )
566
  );
567
  }
568
  return $links;
576
  return array_merge(
577
  array('settings' => '<a href="' . admin_url( 'index.php?page=stops-core-theme-and-plugin-updates/Function.php' ) . '">' . __( 'Configure', 'ts-fab' ) . '</a>'),
578
  $links);
579
+ }
580
+
581
+ // Add Files
582
+ function css() {
583
+ wp_register_style('css', plugins_url('style.css',__FILE__ ));
584
+ wp_enqueue_style('css');
585
+ }
586
+ add_action( 'admin_init','css');
587
+
588
+ function php() {
589
+ wp_register_style('php', plugins_url('uninstall.php',__FILE__ ));
590
+ wp_enqueue_style('php');
591
+ }
592
+ add_action( 'admin_init','php');
readme.txt CHANGED
@@ -19,7 +19,7 @@ Their are also other settings to customize.
19
  <li>Disables theme updates.</li>
20
  <li>Disable WordPress core updates.</li>
21
  <li>Removes admin footer.</li>
22
- <li>Disables backgroud updates.</li>
23
  <li>Removes updates menu in admin sidebar.</li>
24
  </ol>
25
  and many more things!
@@ -51,12 +51,15 @@ A: Yes, this plugin just disables the update (not removes).
51
  = Q: Is it possible to disable one plugin or theme? Are you considering it? =
52
  A: This plugin does not disable themes individual but it can disable plugins individually. We are considering a setting to disable themes individually.
53
 
54
-
55
  == Screenshots ==
56
  1. Settings Page
57
  2. Disable Plugin Updates
58
  3. Disable Plugins Individually
59
 
 
 
 
 
60
  == Installation ==
61
  Their are two way to install "Disable Updates Manager".
62
 
@@ -77,7 +80,21 @@ Their are two way to install "Disable Updates Manager".
77
  </ol>
78
 
79
  == Changelog ==
 
 
 
 
 
80
  = Versions Available for Downloading =
 
 
 
 
 
 
 
 
 
81
  = 3.5.0 =
82
  * Added: "Disable Plugins Individually" postbox.
83
  * Removed: "Disable Updates Individually" section.
@@ -89,6 +106,7 @@ Their are two way to install "Disable Updates Manager".
89
  * Changed: postbox format.
90
  * Changed: "Please Note" border box to proper notice.
91
  * Moved: CSS script.
 
92
  = second update =
93
  * Fixed: screenshot error.
94
  * Fixed: changelog error.
19
  <li>Disables theme updates.</li>
20
  <li>Disable WordPress core updates.</li>
21
  <li>Removes admin footer.</li>
22
+ <li>Disables background updates.</li>
23
  <li>Removes updates menu in admin sidebar.</li>
24
  </ol>
25
  and many more things!
51
  = Q: Is it possible to disable one plugin or theme? Are you considering it? =
52
  A: This plugin does not disable themes individual but it can disable plugins individually. We are considering a setting to disable themes individually.
53
 
 
54
  == Screenshots ==
55
  1. Settings Page
56
  2. Disable Plugin Updates
57
  3. Disable Plugins Individually
58
 
59
+ == ==
60
+
61
+ The next version of WordPress (3.9) should not have any conflicts with this plugin.
62
+
63
  == Installation ==
64
  Their are two way to install "Disable Updates Manager".
65
 
80
  </ol>
81
 
82
  == Changelog ==
83
+ = Preview: 3.7.0 + =
84
+ * Translation
85
+ * Better disable plugins individually feature
86
+ * License.txt
87
+
88
  = Versions Available for Downloading =
89
+ = 3.6.0 =
90
+ * Updated: tutorial link (forgot last update).
91
+ * Updated: notice CSS to make auto size.
92
+ * Fixed: old name for settings page (in URL).
93
+ * Added: style.css.
94
+ * Added: uninstall.php.
95
+ * Added: "Other Notes" in readme.txt.
96
+ * Removed: CSS from function.php.
97
+
98
  = 3.5.0 =
99
  * Added: "Disable Plugins Individually" postbox.
100
  * Removed: "Disable Updates Individually" section.
106
  * Changed: postbox format.
107
  * Changed: "Please Note" border box to proper notice.
108
  * Moved: CSS script.
109
+
110
  = second update =
111
  * Fixed: screenshot error.
112
  * Fixed: changelog error.
style.css ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Tooltips CSS */
2
+
3
+ .showonhover {
4
+ position: relative;
5
+ }
6
+
7
+ .showonhover .hovertext {
8
+ opacity: 0;
9
+ top: -99999px;
10
+ position:absolute;
11
+ z-index:1000;
12
+ border:1px solid #ffd971;
13
+ background-color:#fffdce;
14
+ padding:7.5px;
15
+ width:170px;
16
+ font-size: 0.90em;
17
+ -webkit-transition: opacity 0.3s ease;
18
+ -moz-transition: opacity 0.3s ease;
19
+ -o-transition: opacity 0.3s ease;
20
+ transition: opacity 0.3s ease;
21
+ }
22
+
23
+ .showonhover:hover .hovertext {
24
+ opacity:1;top:0;
25
+ }
26
+
27
+ a.viewdescription {
28
+ color:#999;
29
+ }
30
+
31
+ a.viewdescription:hover {
32
+ background-color:#999;
33
+ color: White;
34
+ }
uninstall.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
3
+ // not defined, abort
4
+ exit ();
5
+ }
6
+ // it was defined, now delete
7
+ delete_option('_disable_updates');