Version Description
- Remove File Setting Added
- Fixed up Settings Page
- Updated Readme.txt
- Removed Tutorial on Settings Page (their is a link to the tutorial in the plugin page)
Download this release
Release Info
Developer | kidsguide |
Plugin | Easy Updates Manager |
Version | 2.3.0 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.3.0
- Function.php +183 -212
- readme.txt +7 -1
Function.php
CHANGED
@@ -2,19 +2,19 @@
|
|
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: Websiteguy
|
13 |
Author URI: http://profiles.wordpress.org/kidsguide/
|
14 |
Compatible with WordPress 2.3+.
|
15 |
*/
|
16 |
/*
|
17 |
-
Copyright
|
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
|
@@ -30,43 +30,37 @@ 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
|
34 |
-
|
35 |
-
|
36 |
-
private $status = array(); // Set $status in array
|
37 |
-
private $checkboxes = array(); // Set $checkboxes in array
|
38 |
-
|
39 |
-
function Update_Notifications()
|
40 |
-
{
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
|
47 |
-
|
48 |
-
|
|
|
49 |
|
50 |
-
|
51 |
-
|
52 |
|
|
|
|
|
53 |
|
54 |
-
// load the values recorded
|
55 |
-
$this->load_update_notifications();
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
/* Register settings via the WP Settings API */
|
62 |
-
function register_setting()
|
63 |
-
{
|
64 |
-
register_setting('_update_notifications', '_update_notifications', array(&$this, 'validate_settings'));
|
65 |
-
}
|
66 |
|
67 |
-
|
|
|
|
|
|
|
68 |
|
69 |
-
|
|
|
70 |
|
71 |
foreach ( $this->checkboxes as $id ) {
|
72 |
if ( isset( $options[$id] ) && !isset( $input[$id] ) )
|
@@ -74,254 +68,231 @@ class Update_Notifications {
|
|
74 |
}
|
75 |
|
76 |
return $input;
|
77 |
-
|
78 |
-
|
79 |
-
function add_submenu()
|
80 |
-
{
|
81 |
-
|
82 |
-
// Add submenu in menu "Settings"
|
83 |
-
add_submenu_page( 'index.php', 'Disable Updates', __('Disable Updates','update-notifications-manager'), 'administrator', __FILE__, array(&$this, 'display_page') );
|
84 |
-
}
|
85 |
|
86 |
-
function
|
87 |
-
|
|
|
|
|
88 |
|
89 |
-
|
|
|
90 |
|
91 |
if( !$this->status ) return;
|
92 |
-
|
93 |
foreach( $this->status as $id => $value ) {
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
98 |
|
99 |
-
// Disable
|
100 |
-
// Disable Updates
|
101 |
remove_action( 'load-update-core.php', 'wp_update_plugins' );
|
102 |
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
|
103 |
|
104 |
-
// Update E-mails
|
105 |
apply_filters( 'auto_plugin_update_send_email', false, $type, $plugin_update, $result );
|
106 |
-
|
107 |
-
// Remove Files
|
108 |
-
function admin_init_1() {
|
109 |
-
if ( !function_exists("remove_action") ) return;
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
remove_action( 'load-update-core.php', 'wp_update_plugins' );
|
118 |
-
wp_clear_scheduled_hook( 'wp_update_plugins' );
|
119 |
-
}
|
120 |
-
|
121 |
-
break;
|
122 |
-
|
123 |
-
case 'theme' :
|
124 |
-
|
125 |
-
// Disable theme updates
|
126 |
-
// Disable Updates
|
127 |
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
128 |
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
|
129 |
|
130 |
-
// Update E-mails
|
131 |
apply_filters( 'auto_theme_update_send_email', false, $type, $theme_update, $result );
|
132 |
|
133 |
-
|
134 |
-
function admin_init_2() {
|
135 |
-
if ( !function_exists("remove_action") ) return;
|
136 |
-
|
137 |
-
remove_action( 'load-themes.php', 'wp_update_themes' );
|
138 |
-
remove_action( 'load-update.php', 'wp_update_themes' );
|
139 |
-
remove_action( 'admin_init', '_maybe_update_themes' );
|
140 |
-
remove_action( 'wp_update_themes', 'wp_update_themes' );
|
141 |
-
wp_clear_scheduled_hook( 'wp_update_themes' );
|
142 |
-
|
143 |
-
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
144 |
-
wp_clear_scheduled_hook( 'wp_update_themes' );
|
145 |
-
|
146 |
-
}
|
147 |
-
|
148 |
-
break;
|
149 |
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
// Disable Updates
|
154 |
remove_action( 'load-update-core.php', 'wp_update_core' );
|
155 |
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
|
156 |
|
157 |
-
// Update E-mails
|
158 |
apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );
|
159 |
-
|
160 |
-
// Remove Files
|
161 |
-
function admin_init_3() {
|
162 |
-
if ( !function_exists("remove_action") ) return;
|
163 |
-
|
164 |
-
remove_action( 'wp_version_check', 'wp_version_check' );
|
165 |
-
remove_action( 'admin_init', '_maybe_update_core' );
|
166 |
-
wp_clear_scheduled_hook( 'wp_version_check' );
|
167 |
-
|
168 |
-
wp_clear_scheduled_hook( 'wp_version_check' );
|
169 |
-
}
|
170 |
-
|
171 |
-
break;
|
172 |
-
|
173 |
-
case 'page' :
|
174 |
|
175 |
-
|
176 |
|
|
|
|
|
|
|
|
|
177 |
add_action('admin_menu', 'remove_menus', 102);
|
|
|
178 |
function remove_menus() {
|
179 |
-
|
180 |
remove_submenu_page ( 'index.php', 'update-core.php' );
|
181 |
}
|
182 |
|
183 |
-
|
184 |
|
185 |
-
|
186 |
-
|
187 |
-
// Remove Notifications
|
188 |
|
189 |
-
|
190 |
-
function
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
}
|
|
|
|
|
|
|
|
|
193 |
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
}
|
203 |
|
|
|
|
|
204 |
}
|
205 |
|
206 |
-
|
207 |
-
|
208 |
|
209 |
-
|
210 |
if (!current_user_can('update_core'))
|
211 |
wp_die( __('You do not have sufficient permissions to access this page.') );
|
212 |
|
213 |
?>
|
214 |
|
215 |
<div class="wrap">
|
216 |
-
|
217 |
-
<h2><?php _e('Disable All Updates Settings','update-notifications-manager'); ?></h2>
|
218 |
|
219 |
<form method="post" action="options.php">
|
220 |
|
221 |
-
<?php settings_fields('
|
222 |
|
223 |
<table class="form-table">
|
224 |
|
225 |
<tr>
|
226 |
<p class="submit">
|
227 |
<input type="submit" class="button-primary" value="<?php _e('Save') ?>" />
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
<legend class="screen-reader-text"><span><?php _e('Disable Updates:', '
|
232 |
-
|
233 |
-
<input type="checkbox" <?php checked(1, (int)$this->status['plugin'], true); ?> value="1" id="plugins_notify" name="
|
234 |
-
|
|
|
|
|
|
|
|
|
235 |
<br>
|
236 |
-
|
237 |
-
<input type="checkbox" <?php checked(1, (int)$this->status['
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
<br>
|
240 |
-
|
241 |
-
<input type="checkbox" <?php checked(1, (int)$this->status['
|
242 |
-
|
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 |
-
|
253 |
-
<input type="checkbox" <?php checked(1, (int)$this->status['
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
</tr>
|
258 |
-
|
259 |
-
<
|
260 |
-
<
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
</
|
265 |
-
</
|
266 |
-
</
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
</td>
|
278 |
-
</tr>
|
279 |
-
|
280 |
-
</table>
|
281 |
|
282 |
</form>
|
283 |
|
284 |
</div>
|
285 |
|
286 |
-
|
287 |
-
|
288 |
-
}
|
289 |
-
|
290 |
-
// Start this plugin once all other plugins are fully loaded
|
291 |
-
global $Update_Notifications; $Update_Notifications = new Update_Notifications();
|
292 |
|
293 |
-
//
|
|
|
294 |
|
|
|
295 |
add_filter( 'plugin_row_meta', 'thsp_plugin_meta_links', 10, 2 );
|
296 |
|
297 |
function thsp_plugin_meta_links( $links, $file ) {
|
298 |
-
|
299 |
|
300 |
-
// Create links
|
301 |
-
|
302 |
if ( $file == $plugin ) {
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
);
|
309 |
}
|
310 |
return $links;
|
311 |
-
|
312 |
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
),
|
324 |
-
$links
|
325 |
-
);
|
326 |
-
|
327 |
-
}
|
2 |
/**
|
3 |
* @package Disable All Updates
|
4 |
* @author Websiteguy
|
5 |
+
* @version 2.3.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.3.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 |
/*
|
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
|
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();
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
+
// Set checkboxes in array
|
38 |
+
private $checkboxes = array();
|
39 |
+
|
40 |
+
function Disable_Updates() {
|
41 |
|
42 |
+
// Coming Soon: Add translations
|
43 |
+
if (function_exists('load_plugin_textdomain'))
|
44 |
+
load_plugin_textdomain( 'disable-updates-manager', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
|
45 |
|
46 |
+
// Add menu page
|
47 |
+
add_action('admin_menu', array(&$this, 'add_submenu'));
|
48 |
|
49 |
+
// Settings API
|
50 |
+
add_action('admin_init', array(&$this, 'register_setting'));
|
51 |
|
|
|
|
|
52 |
|
53 |
+
// load the values recorded
|
54 |
+
$this->load_disable_updates();
|
55 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
+
// Register Settings
|
58 |
+
function register_setting() {
|
59 |
+
register_setting('_disable_updates', '_disable_updates', array(&$this, 'validate_settings'));
|
60 |
+
}
|
61 |
|
62 |
+
function validate_settings( $input ) {
|
63 |
+
$options = get_option( '_disable_updates' );
|
64 |
|
65 |
foreach ( $this->checkboxes as $id ) {
|
66 |
if ( isset( $options[$id] ) && !isset( $input[$id] ) )
|
68 |
}
|
69 |
|
70 |
return $input;
|
71 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
+
function add_submenu() {
|
74 |
+
// Add submenu in menu "Dashboard"
|
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 |
|
81 |
if( !$this->status ) return;
|
82 |
+
|
83 |
foreach( $this->status as $id => $value ) {
|
84 |
+
|
85 |
+
switch( $id ) {
|
86 |
+
|
87 |
+
// Disable Plugin Updates
|
88 |
+
case 'plugin' :
|
89 |
|
90 |
+
// Disable Plugin Updates Code
|
|
|
91 |
remove_action( 'load-update-core.php', 'wp_update_plugins' );
|
92 |
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
|
93 |
|
94 |
+
// Disable Plugin Update E-mails (only works for some plugins)
|
95 |
apply_filters( 'auto_plugin_update_send_email', false, $type, $plugin_update, $result );
|
|
|
|
|
|
|
|
|
96 |
|
97 |
+
break;
|
98 |
+
|
99 |
+
// Disable Theme Updates
|
100 |
+
case 'theme' :
|
101 |
+
|
102 |
+
// Disable Theme Updates Code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
104 |
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
|
105 |
|
106 |
+
// Disable Theme Update E-mails (only works for some plugins)
|
107 |
apply_filters( 'auto_theme_update_send_email', false, $type, $theme_update, $result );
|
108 |
|
109 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
+
// Disable WordPress Core Updates
|
112 |
+
case 'core' :
|
113 |
+
|
114 |
+
// Disable WordPress Core Updates Code
|
115 |
remove_action( 'load-update-core.php', 'wp_update_core' );
|
116 |
add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );
|
117 |
|
118 |
+
// Disable WordPress Core Update E-mails (only works for some plugins)
|
119 |
apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
+
break;
|
122 |
|
123 |
+
// Remove the Dashboard Updates Menu
|
124 |
+
case 'page' :
|
125 |
+
|
126 |
+
// Remove the Dashboard Updates Menu Code
|
127 |
add_action('admin_menu', 'remove_menus', 102);
|
128 |
+
|
129 |
function remove_menus() {
|
130 |
+
global $submenu;
|
131 |
remove_submenu_page ( 'index.php', 'update-core.php' );
|
132 |
}
|
133 |
|
134 |
+
break;
|
135 |
|
136 |
+
// Remove Update Files
|
137 |
+
case 'files' :
|
|
|
138 |
|
139 |
+
// Remove Plugin Files
|
140 |
+
function admin_init_plugin() {
|
141 |
+
if ( !function_exists("remove_action") ) return;
|
142 |
+
|
143 |
+
remove_action( 'load-plugins.php', 'wp_update_plugins' );
|
144 |
+
remove_action( 'load-update.php', 'wp_update_plugins' );
|
145 |
+
remove_action( 'admin_init', '_maybe_update_plugins' );
|
146 |
+
remove_action( 'wp_update_plugins', 'wp_update_plugins' );
|
147 |
+
wp_clear_scheduled_hook( 'wp_update_plugins' );
|
148 |
+
|
149 |
+
remove_action( 'load-update-core.php', 'wp_update_plugins' );
|
150 |
+
wp_clear_scheduled_hook( 'wp_update_plugins' );
|
151 |
+
}
|
152 |
+
|
153 |
+
// Remove Theme Files
|
154 |
+
function admin_init_theme() {
|
155 |
+
if ( !function_exists("remove_action") ) return;
|
156 |
+
|
157 |
+
remove_action( 'load-themes.php', 'wp_update_themes' );
|
158 |
+
remove_action( 'load-update.php', 'wp_update_themes' );
|
159 |
+
remove_action( 'admin_init', '_maybe_update_themes' );
|
160 |
+
remove_action( 'wp_update_themes', 'wp_update_themes' );
|
161 |
+
wp_clear_scheduled_hook( 'wp_update_themes' );
|
162 |
+
|
163 |
+
remove_action( 'load-update-core.php', 'wp_update_themes' );
|
164 |
+
wp_clear_scheduled_hook( 'wp_update_themes' );
|
165 |
}
|
166 |
+
|
167 |
+
// Remove WordPress Core Files
|
168 |
+
function admin_init_core() {
|
169 |
+
if ( !function_exists("remove_action") ) return;
|
170 |
|
171 |
+
remove_action( 'wp_version_check', 'wp_version_check' );
|
172 |
+
remove_action( 'admin_init', '_maybe_update_core' );
|
173 |
+
wp_clear_scheduled_hook( 'wp_version_check' );
|
174 |
+
|
175 |
+
wp_clear_scheduled_hook( 'wp_version_check' );
|
176 |
+
}
|
177 |
+
|
178 |
+
break;
|
|
|
179 |
|
180 |
+
}
|
181 |
+
}
|
182 |
}
|
183 |
|
184 |
+
// Settings Page (Under Dashboard)
|
185 |
+
function display_page() {
|
186 |
|
187 |
+
// Check if user can access to the plugin
|
188 |
if (!current_user_can('update_core'))
|
189 |
wp_die( __('You do not have sufficient permissions to access this page.') );
|
190 |
|
191 |
?>
|
192 |
|
193 |
<div class="wrap">
|
194 |
+
<h2><?php _e('Disable All Updates Settings','disable-updates-manager'); ?></h2>
|
|
|
195 |
|
196 |
<form method="post" action="options.php">
|
197 |
|
198 |
+
<?php settings_fields('_disable_updates'); ?>
|
199 |
|
200 |
<table class="form-table">
|
201 |
|
202 |
<tr>
|
203 |
<p class="submit">
|
204 |
<input type="submit" class="button-primary" value="<?php _e('Save') ?>" />
|
205 |
+
<th scope="row"><?php _e('Disable Updates:', 'disable-updates-manager') ?></th>
|
206 |
+
<td>
|
207 |
+
<fieldset>
|
208 |
+
<legend class="screen-reader-text"><span><?php _e('Disable Updates:', 'disable-updates-manager') ?></span></legend>
|
209 |
+
<label for="plugins_notify">
|
210 |
+
<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') ?>
|
211 |
+
</label>
|
212 |
+
<br>
|
213 |
+
<label for="themes_notify">
|
214 |
+
<input type="checkbox" <?php checked(1, (int)$this->status['theme'], true); ?> value="1" id="themes_notify" name="_disable_updates[theme]"> <?php _e('Disable Theme Updates', 'disable-updates-manager') ?>
|
215 |
+
</label>
|
216 |
<br>
|
217 |
+
<label for="core_notify">
|
218 |
+
<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') ?>
|
219 |
+
</label>
|
220 |
+
</fieldset>
|
221 |
+
</td>
|
222 |
+
</tr>
|
223 |
+
|
224 |
+
<tr>
|
225 |
+
<th scope="row"><?php _e('Other Settings:', 'disable-updates-manager') ?></th>
|
226 |
+
<td>
|
227 |
+
<fieldset>
|
228 |
+
<legend class="screen-reader-text"><span><?php _e('Other Settings:', 'disable-updates-manager') ?></span></legend>
|
229 |
<br>
|
230 |
+
<label for="page_notify">
|
231 |
+
<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') ?>
|
232 |
+
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
<br>
|
234 |
+
<label for="files_notify">
|
235 |
+
<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') ?>
|
236 |
+
</label>
|
237 |
+
</fieldset>
|
238 |
+
</td>
|
239 |
</tr>
|
240 |
+
|
241 |
+
<tr>
|
242 |
+
<td>
|
243 |
+
<fieldset>
|
244 |
+
<p class="submit">
|
245 |
+
<input type="submit" class="button-primary" value="<?php _e('Save') ?>" />
|
246 |
+
</p>
|
247 |
+
</fieldset>
|
248 |
+
</td>
|
249 |
+
</tr>
|
250 |
+
|
251 |
+
<td>
|
252 |
+
If you like this plugin, please rate it.
|
253 |
+
<br />
|
254 |
+
<br />
|
255 |
+
Thanks for download this plugin!
|
256 |
+
</td>
|
257 |
+
|
258 |
+
</table>
|
|
|
|
|
|
|
|
|
259 |
|
260 |
</form>
|
261 |
|
262 |
</div>
|
263 |
|
264 |
+
<?php
|
265 |
+
}
|
266 |
+
}
|
|
|
|
|
|
|
267 |
|
268 |
+
// Start this plugin once all other plugins are fully loaded
|
269 |
+
global $Disable_Updates; $Disable_Updates = new Disable_Updates();
|
270 |
|
271 |
+
// Plugin Page Links Function
|
272 |
add_filter( 'plugin_row_meta', 'thsp_plugin_meta_links', 10, 2 );
|
273 |
|
274 |
function thsp_plugin_meta_links( $links, $file ) {
|
275 |
+
$plugin = plugin_basename(__FILE__);
|
276 |
|
277 |
+
// Create links
|
|
|
278 |
if ( $file == $plugin ) {
|
279 |
+
return array_merge(
|
280 |
+
$links,
|
281 |
+
array( '<a href="http://www.wordpress.org/support/plugin/stops-core-theme-and-plugin-updates">Support</a>' ),
|
282 |
+
array( '<a href="http://www.wordpress.org/plugins/stops-core-theme-and-plugin-updates/faq/">FAQ</a>' ),
|
283 |
+
array( '<a href="http://www.youtube.com/watch?v=ESOSt_ebiwM">Tutorial</a>' )
|
284 |
);
|
285 |
}
|
286 |
return $links;
|
287 |
+
}
|
288 |
|
289 |
+
|
290 |
+
// Add Settings Link
|
291 |
+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'thsp_plugin_action_links' );
|
292 |
+
|
293 |
+
function thsp_plugin_action_links( $links ) {
|
294 |
+
|
295 |
+
return array_merge(
|
296 |
+
array('settings' => '<a href="' . admin_url( 'index.php?page=stops-core-theme-and-plugin-updates/Function.php' ) . '">' . __( 'Settings', 'ts-fab' ) . '</a>'),
|
297 |
+
$links);
|
298 |
+
}
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -117,6 +117,12 @@ Their are three way to install Disable All Updates.
|
|
117 |
|
118 |
|
119 |
= Versions Available for Downloading =
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
= 2.2.1 =
|
121 |
* Fixed Readme.txt Errors with Boxes
|
122 |
|
@@ -228,4 +234,4 @@ Their are three way to install Disable All Updates.
|
|
228 |
= 0.1 =
|
229 |
|
230 |
* Published on Wordpress.org
|
231 |
-
(September 1, 2013)
|
117 |
|
118 |
|
119 |
= Versions Available for Downloading =
|
120 |
+
= 2.3.0 =
|
121 |
+
* Remove File Setting Added
|
122 |
+
* Fixed up Settings Page
|
123 |
+
* Updated Readme.txt
|
124 |
+
* Removed Tutorial on Settings Page (their is a link to the tutorial in the plugin page)
|
125 |
+
|
126 |
= 2.2.1 =
|
127 |
* Fixed Readme.txt Errors with Boxes
|
128 |
|
234 |
= 0.1 =
|
235 |
|
236 |
* Published on Wordpress.org
|
237 |
+
(September 1, 2013)
|