Version Description
- Settings Page Updated (under Dashboard and with more settings)
- Fixed Disable Plugin, Theme, and Core Disabling Problem
- Updated Readme.txt
- Removed Hide Updates Notice Setting
- Remove Admin Notice (Thanks conservativeread!)
Download this release
Release Info
| Developer | kidsguide |
| Plugin | |
| Version | 2.1.0 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.0 to 2.1.0
- Function.php +33 -44
- readme.txt +8 -5
Function.php
CHANGED
|
@@ -2,15 +2,15 @@
|
|
| 2 |
/**
|
| 3 |
* @package Disable All Updates
|
| 4 |
* @author Websiteguy
|
| 5 |
-
* @version 2.
|
| 6 |
*/
|
| 7 |
/*
|
| 8 |
Plugin Name: Disable All Updates
|
| 9 |
Plugin URI: http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
| 10 |
-
Version: 2.
|
| 11 |
Description: A simple WordPress plugin that disables all the updating of plugins, themes, and the WordPress core. Just fill out the settings.
|
| 12 |
-
Author:
|
| 13 |
-
Author
|
| 14 |
Compatible with WordPress 2.3+.
|
| 15 |
*/
|
| 16 |
/*
|
|
@@ -221,11 +221,14 @@ break;
|
|
| 221 |
<?php settings_fields('_update_notifications'); ?>
|
| 222 |
|
| 223 |
<table class="form-table">
|
|
|
|
| 224 |
<tr>
|
| 225 |
-
|
|
|
|
|
|
|
| 226 |
<td>
|
| 227 |
<fieldset>
|
| 228 |
-
<legend class="screen-reader-text"><span><?php _e('Disable Updates
|
| 229 |
<label for="plugins_notify">
|
| 230 |
<input type="checkbox" <?php checked(1, (int)$this->status['plugin'], true); ?> value="1" id="plugins_notify" name="_update_notifications[plugin]"> <?php _e('Disable Plugin Updates', 'update-notifications-manager') ?>
|
| 231 |
</label>
|
|
@@ -237,14 +240,18 @@ break;
|
|
| 237 |
<label for="core_notify">
|
| 238 |
<input type="checkbox" <?php checked(1, (int)$this->status['core'], true); ?> value="1" id="core_notify" name="_update_notifications[core]"> <?php _e('Disable WordPress Core Update', 'update-notifications-manager') ?>
|
| 239 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
<br>
|
| 241 |
<label for="page_notify">
|
| 242 |
<input type="checkbox" <?php checked(1, (int)$this->status['page'], true); ?> value="1" id="page_notify" name="_update_notifications[page]"> <?php _e('Remove Updates Page (Under Dashboard)', 'update-notifications-manager') ?>
|
| 243 |
</label>
|
| 244 |
-
<br>
|
| 245 |
-
<label for="all_notify">
|
| 246 |
-
<input type="checkbox" <?php checked(1, (int)$this->status['all'], true); ?> value="1" id="all_notify" name="_update_notifications[all]"> <?php _e('Remove Notices (For All)', 'update-notifications-manager') ?>
|
| 247 |
-
</label>
|
| 248 |
</fieldset>
|
| 249 |
</td>
|
| 250 |
</tr>
|
|
@@ -255,6 +262,7 @@ break;
|
|
| 255 |
</p>
|
| 256 |
|
| 257 |
</form>
|
|
|
|
| 258 |
</div>
|
| 259 |
|
| 260 |
<?php
|
|
@@ -284,37 +292,18 @@ global $Update_Notifications; $Update_Notifications = new Update_Notifications()
|
|
| 284 |
return $links;
|
| 285 |
}
|
| 286 |
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
<marquee direction="right" width="270px" style="border:GREY 1px Dotted">Working...</marquee>
|
| 303 |
-
<br />
|
| 304 |
-
<a href="?dismiss_me=yes">Hide Notice</a>
|
| 305 |
-
</p>
|
| 306 |
-
</div>';
|
| 307 |
-
}
|
| 308 |
-
}
|
| 309 |
-
add_action( 'admin_notices', 'thsp_admin_notices' );
|
| 310 |
-
|
| 311 |
-
// Action for Hide Notice Text
|
| 312 |
-
|
| 313 |
-
function thsp_dismiss_admin_notice() {
|
| 314 |
-
global $current_user;
|
| 315 |
-
$userid = $current_user->ID;
|
| 316 |
-
if ( isset($_GET['example_nag_ignore']) && '3' == $_GET['example_nag_ignore'] ) {
|
| 317 |
-
add_user_meta($user_id, 'example_ignore_notice', 'true', true);
|
| 318 |
-
}
|
| 319 |
-
}
|
| 320 |
-
add_action( 'admin_init', 'thsp_dismiss_admin_notice' );
|
| 2 |
/**
|
| 3 |
* @package Disable All Updates
|
| 4 |
* @author Websiteguy
|
| 5 |
+
* @version 2.1.0
|
| 6 |
*/
|
| 7 |
/*
|
| 8 |
Plugin Name: Disable All Updates
|
| 9 |
Plugin URI: http://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
| 10 |
+
Version: 2.1.0
|
| 11 |
Description: A simple WordPress plugin that disables all the updating of plugins, themes, and the WordPress core. Just fill out the settings.
|
| 12 |
+
Author: Websiteguy
|
| 13 |
+
Author URI: http://profiles.wordpress.org/kidsguide/
|
| 14 |
Compatible with WordPress 2.3+.
|
| 15 |
*/
|
| 16 |
/*
|
| 221 |
<?php settings_fields('_update_notifications'); ?>
|
| 222 |
|
| 223 |
<table class="form-table">
|
| 224 |
+
|
| 225 |
<tr>
|
| 226 |
+
<p class="submit">
|
| 227 |
+
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
| 228 |
+
<th scope="row"><?php _e('Disable Updates:', 'update-notifications-manager') ?></th>
|
| 229 |
<td>
|
| 230 |
<fieldset>
|
| 231 |
+
<legend class="screen-reader-text"><span><?php _e('Disable Updates:', 'update-notifications-manager') ?></span></legend>
|
| 232 |
<label for="plugins_notify">
|
| 233 |
<input type="checkbox" <?php checked(1, (int)$this->status['plugin'], true); ?> value="1" id="plugins_notify" name="_update_notifications[plugin]"> <?php _e('Disable Plugin Updates', 'update-notifications-manager') ?>
|
| 234 |
</label>
|
| 240 |
<label for="core_notify">
|
| 241 |
<input type="checkbox" <?php checked(1, (int)$this->status['core'], true); ?> value="1" id="core_notify" name="_update_notifications[core]"> <?php _e('Disable WordPress Core Update', 'update-notifications-manager') ?>
|
| 242 |
</label>
|
| 243 |
+
</fieldset>
|
| 244 |
+
</td>
|
| 245 |
+
</tr>
|
| 246 |
+
<tr>
|
| 247 |
+
<th scope="row"><?php _e('Other Settings:', 'update-notifications-manager') ?></th>
|
| 248 |
+
<td>
|
| 249 |
+
<fieldset>
|
| 250 |
+
<legend class="screen-reader-text"><span><?php _e('Other Settings:', 'update-notifications-manager') ?></span></legend>
|
| 251 |
<br>
|
| 252 |
<label for="page_notify">
|
| 253 |
<input type="checkbox" <?php checked(1, (int)$this->status['page'], true); ?> value="1" id="page_notify" name="_update_notifications[page]"> <?php _e('Remove Updates Page (Under Dashboard)', 'update-notifications-manager') ?>
|
| 254 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
</fieldset>
|
| 256 |
</td>
|
| 257 |
</tr>
|
| 262 |
</p>
|
| 263 |
|
| 264 |
</form>
|
| 265 |
+
|
| 266 |
</div>
|
| 267 |
|
| 268 |
<?php
|
| 292 |
return $links;
|
| 293 |
}
|
| 294 |
|
| 295 |
+
/**
|
| 296 |
+
* Add action links in Plugins table
|
| 297 |
+
*/
|
| 298 |
+
|
| 299 |
+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'thsp_plugin_action_links' );
|
| 300 |
+
function thsp_plugin_action_links( $links ) {
|
| 301 |
+
|
| 302 |
+
return array_merge(
|
| 303 |
+
array(
|
| 304 |
+
'settings' => '<a href="' . admin_url( 'index.php?page=stops-core-theme-and-plugin-updates/Function.php' ) . '">' . __( 'Settings', 'ts-fab' ) . '</a>'
|
| 305 |
+
),
|
| 306 |
+
$links
|
| 307 |
+
);
|
| 308 |
+
|
| 309 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
|
@@ -35,11 +35,7 @@ And More...
|
|
| 35 |
[youtube http://www.youtube.com/watch?v=ZSJf9nwP7oA]
|
| 36 |
|
| 37 |
= Just Won't to Disable One or Two? =
|
| 38 |
-
|
| 39 |
-
<li><a href="http://wordpress.org/plugins/disable-core-updates">Disable Core Updates</a></li>
|
| 40 |
-
<li><a href="http://wordpress.org/plugins/disable-theme-updates">Disable Theme Updates</a></li>
|
| 41 |
-
<li><a href="http://wordpress.org/plugins/disable-plugin-updates">Disable Plugin Updates</a></li>
|
| 42 |
-
</ol>
|
| 43 |
|
| 44 |
= Check Out Our Newest Plugin! =
|
| 45 |
<li><a href="http://wordpress.org/plugins/remove-the-updates-submenu/">Remove the Updates Submenu</a></li>
|
|
@@ -125,6 +121,13 @@ Their are three way to install Disable All Updates.
|
|
| 125 |
|
| 126 |
|
| 127 |
= Versions Available for Downloading =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
= 2.0.0 =
|
| 129 |
* Settings Page Added
|
| 130 |
* Disable One, Two, or Three Feature Added
|
| 35 |
[youtube http://www.youtube.com/watch?v=ZSJf9nwP7oA]
|
| 36 |
|
| 37 |
= Just Won't to Disable One or Two? =
|
| 38 |
+
With the new settings form under dashboard, it easy. Just check the things you won't disabled.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
= Check Out Our Newest Plugin! =
|
| 41 |
<li><a href="http://wordpress.org/plugins/remove-the-updates-submenu/">Remove the Updates Submenu</a></li>
|
| 121 |
|
| 122 |
|
| 123 |
= Versions Available for Downloading =
|
| 124 |
+
= 2.1.0 =
|
| 125 |
+
* Settings Page Updated (under Dashboard and with more settings)
|
| 126 |
+
* Fixed Disable Plugin, Theme, and Core Disabling Problem
|
| 127 |
+
* Updated Readme.txt
|
| 128 |
+
* Removed Hide Updates Notice Setting
|
| 129 |
+
* Remove Admin Notice (Thanks conservativeread!)
|
| 130 |
+
|
| 131 |
= 2.0.0 =
|
| 132 |
* Settings Page Added
|
| 133 |
* Disable One, Two, or Three Feature Added
|
