Version Description
Released 2015-11-25
- Removed e-mail options that didn't make it into WordPress 4.4
- Fixed GoDaddy issue where plugin wasn't showing up
Download this release
Release Info
Developer | ronalfy |
Plugin | Easy Updates Manager |
Version | 5.4.2 |
Comparing to | |
See all releases |
Code changes from version 5.4.1 to 5.4.2
- css/style.css +1 -0
- includes/MPSUM_Admin.php +4 -4
- includes/MPSUM_Admin_Advanced.php +1 -1
- includes/MPSUM_Admin_Core.php +12 -8
- includes/MPSUM_Admin_Dashboard.php +50 -41
- js/admin.js +6 -6
- main.php +3 -3
- readme.txt +11 -2
css/style.css
CHANGED
@@ -115,6 +115,7 @@
|
|
115 |
border-top: none;
|
116 |
}
|
117 |
.dashboard-item {
|
|
|
118 |
clear: both;
|
119 |
border-bottom: 1px solid #d2d2d2;
|
120 |
padding: 18px 15px;
|
115 |
border-top: none;
|
116 |
}
|
117 |
.dashboard-item {
|
118 |
+
cursor: pointer;
|
119 |
clear: both;
|
120 |
border-bottom: 1px solid #d2d2d2;
|
121 |
padding: 18px 15px;
|
includes/MPSUM_Admin.php
CHANGED
@@ -169,8 +169,8 @@ class MPSUM_Admin {
|
|
169 |
return;
|
170 |
}
|
171 |
|
172 |
-
wp_enqueue_script( 'mpsum_dashboard', MPSUM_Updates_Manager::get_plugin_url( '/js/admin.js' ), array( 'jquery' ), '
|
173 |
-
wp_enqueue_style( 'mpsum_dashboard', MPSUM_Updates_Manager::get_plugin_url( '/css/style.css' ), array(), '
|
174 |
}
|
175 |
|
176 |
/**
|
@@ -185,7 +185,7 @@ class MPSUM_Admin {
|
|
185 |
*
|
186 |
*/
|
187 |
public function init_network_admin_menus() {
|
188 |
-
$hook = add_dashboard_page( __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ) , __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ), '
|
189 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
190 |
add_action( "load-$hook", array( $this, 'init_help_screen' ) );
|
191 |
}
|
@@ -202,7 +202,7 @@ class MPSUM_Admin {
|
|
202 |
*
|
203 |
*/
|
204 |
public function init_single_site_admin_menus() {
|
205 |
-
$hook = add_dashboard_page( __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ) , __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ), '
|
206 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
207 |
add_action( "load-$hook", array( $this, 'init_help_screen' ) );
|
208 |
}
|
169 |
return;
|
170 |
}
|
171 |
|
172 |
+
wp_enqueue_script( 'mpsum_dashboard', MPSUM_Updates_Manager::get_plugin_url( '/js/admin.js' ), array( 'jquery' ), '20151125', true );
|
173 |
+
wp_enqueue_style( 'mpsum_dashboard', MPSUM_Updates_Manager::get_plugin_url( '/css/style.css' ), array(), '20151125' );
|
174 |
}
|
175 |
|
176 |
/**
|
185 |
*
|
186 |
*/
|
187 |
public function init_network_admin_menus() {
|
188 |
+
$hook = add_dashboard_page( __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ) , __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ), 'install_plugins', self::get_slug(), array( $this, 'output_admin_interface' ) );
|
189 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
190 |
add_action( "load-$hook", array( $this, 'init_help_screen' ) );
|
191 |
}
|
202 |
*
|
203 |
*/
|
204 |
public function init_single_site_admin_menus() {
|
205 |
+
$hook = add_dashboard_page( __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ) , __( 'Updates Options', 'stops-core-theme-and-plugin-updates' ), 'install_plugins', self::get_slug(), array( $this, 'output_admin_interface' ) );
|
206 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
207 |
add_action( "load-$hook", array( $this, 'init_help_screen' ) );
|
208 |
}
|
includes/MPSUM_Admin_Advanced.php
CHANGED
@@ -56,7 +56,7 @@ class MPSUM_Admin_Advanced {
|
|
56 |
*
|
57 |
*/
|
58 |
public function maybe_save_options() {
|
59 |
-
if ( !current_user_can( '
|
60 |
if ( !isset( $_GET[ 'page' ] ) || $_GET[ 'page' ] != $this->slug ) return;
|
61 |
if ( !isset( $_POST[ 'action' ] ) ) return;
|
62 |
if ( !isset( $_POST[ '_mpsum' ] ) ) return;
|
56 |
*
|
57 |
*/
|
58 |
public function maybe_save_options() {
|
59 |
+
if ( !current_user_can( 'install_plugins' ) ) return;
|
60 |
if ( !isset( $_GET[ 'page' ] ) || $_GET[ 'page' ] != $this->slug ) return;
|
61 |
if ( !isset( $_POST[ 'action' ] ) ) return;
|
62 |
if ( !isset( $_POST[ '_mpsum' ] ) ) return;
|
includes/MPSUM_Admin_Core.php
CHANGED
@@ -88,7 +88,7 @@ class MPSUM_Admin_Core {
|
|
88 |
*
|
89 |
*/
|
90 |
public function maybe_save_options() {
|
91 |
-
if ( !current_user_can( '
|
92 |
if ( !isset( $_GET[ 'page' ] ) || $_GET[ 'page' ] != $this->slug ) return;
|
93 |
if ( !isset( $_REQUEST[ 'action' ] ) ) return;
|
94 |
if ( !isset( $_POST[ 'options' ] ) ) return;
|
@@ -242,14 +242,18 @@ class MPSUM_Admin_Core {
|
|
242 |
<th scope="row"><?php esc_html_e( 'Core E-mails', 'stops-core-theme-and-plugin-updates' ); ?></th>
|
243 |
<td>
|
244 |
<input type="hidden" name="options[notification_core_update_emails]" value="off" />
|
245 |
-
<input type="checkbox" name="options[notification_core_update_emails]" value="on" id="notification_core_update_emails_on" <?php checked( 'on', $options[ 'notification_core_update_emails' ] ); ?> /> <label for="notification_core_update_emails_on"><?php esc_html_e( 'Core Update Emails', 'stops-core-theme-and-plugin-updates' ); ?></label
|
246 |
-
|
247 |
-
<input type="
|
248 |
-
<input type="hidden" name="options[notification_core_update_emails_themes]" value="
|
|
|
|
|
|
|
|
|
|
|
249 |
<input type="checkbox" name="options[notification_core_update_emails_themes]" value="on" id="notification_core_update_emails_themes" <?php checked( 'on', $options[ 'notification_core_update_emails_themes' ] ); ?> /> <label for="notification_core_update_emails_themes"><?php esc_html_e( 'Core Theme Emails', 'stops-core-theme-and-plugin-updates' ); ?></label><br />
|
250 |
-
<input type="hidden" name="options[notification_core_update_emails_translations]" value="off" />
|
251 |
<input type="checkbox" name="options[notification_core_update_emails_translations]" value="on" id="notification_core_update_emails_translations_on" <?php checked( 'on', $options[ 'notification_core_update_emails_translations' ] ); ?> /> <label for="notification_core_update_emails_translations_on"><?php esc_html_e( 'Core Translation Emails', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
252 |
-
<p class="description"><?php esc_html_e( 'Disable e-mails that are sent when your site has been upgraded automatically. These will not be functional until WordPress 4.
|
253 |
</td>
|
254 |
</tr>
|
255 |
</table>
|
@@ -266,7 +270,7 @@ class MPSUM_Admin_Core {
|
|
266 |
<tr>
|
267 |
<th scope="row"><?php esc_html_e( 'WordPress Version in Footer', 'stops-core-theme-and-plugin-updates' ); ?></th>
|
268 |
<td>
|
269 |
-
<input type="radio" name="options[misc_wp_footer]" value="on" id="misc_wp_footer_on" <?php checked( 'on', $options[ 'misc_wp_footer' ] ); ?> /> <label for="
|
270 |
<input type="radio" name="options[misc_wp_footer]" value="off" id="misc_wp_footer_off" <?php checked( 'off', $options[ 'misc_wp_footer' ] ); ?> /> <label for="misc_wp_footer_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
271 |
<p class="description"><?php esc_html_e( 'Removes the WordPress version in the footer.', 'stops-core-theme-and-plugin-updates' ); ?></p>
|
272 |
</td>
|
88 |
*
|
89 |
*/
|
90 |
public function maybe_save_options() {
|
91 |
+
if ( !current_user_can( 'install_plugins' ) ) return;
|
92 |
if ( !isset( $_GET[ 'page' ] ) || $_GET[ 'page' ] != $this->slug ) return;
|
93 |
if ( !isset( $_REQUEST[ 'action' ] ) ) return;
|
94 |
if ( !isset( $_POST[ 'options' ] ) ) return;
|
242 |
<th scope="row"><?php esc_html_e( 'Core E-mails', 'stops-core-theme-and-plugin-updates' ); ?></th>
|
243 |
<td>
|
244 |
<input type="hidden" name="options[notification_core_update_emails]" value="off" />
|
245 |
+
<input type="checkbox" name="options[notification_core_update_emails]" value="on" id="notification_core_update_emails_on" <?php checked( 'on', $options[ 'notification_core_update_emails' ] ); ?> /> <label for="notification_core_update_emails_on"><?php esc_html_e( 'Core Update Emails', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
246 |
+
<?php /* Hidden checkboxes until changes make into core. Shooting for WordPress 4.5 */ ?>
|
247 |
+
<input type="hidden" name="options[notification_core_update_emails_plugins]" value="on" />
|
248 |
+
<input type="hidden" name="options[notification_core_update_emails_themes]" value="on" />
|
249 |
+
<input type="hidden" name="options[notification_core_update_emails_translations]" value="on" />
|
250 |
+
<?php /*
|
251 |
+
<br />
|
252 |
+
<input type="checkbox" name="options[notification_core_update_emails_plugins]" value="on" id="notification_core_update_emails_plugins_on" <?php checked( 'on', $options[ 'notification_core_update_emails_plugins' ] ); ?> /> <label for="notification_core_update_emails_plugins_on">
|
253 |
+
<?php esc_html_e( 'Core Plugin Emails', 'stops-core-theme-and-plugin-updates' ); ?></label><br />
|
254 |
<input type="checkbox" name="options[notification_core_update_emails_themes]" value="on" id="notification_core_update_emails_themes" <?php checked( 'on', $options[ 'notification_core_update_emails_themes' ] ); ?> /> <label for="notification_core_update_emails_themes"><?php esc_html_e( 'Core Theme Emails', 'stops-core-theme-and-plugin-updates' ); ?></label><br />
|
|
|
255 |
<input type="checkbox" name="options[notification_core_update_emails_translations]" value="on" id="notification_core_update_emails_translations_on" <?php checked( 'on', $options[ 'notification_core_update_emails_translations' ] ); ?> /> <label for="notification_core_update_emails_translations_on"><?php esc_html_e( 'Core Translation Emails', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
256 |
+
<p class="description"><?php esc_html_e( 'Disable e-mails that are sent when your site has been upgraded automatically. These will not be functional until WordPress 4.5.', 'stops-core-theme-and-plugin-updates' ); ?></p>*/ ?>
|
257 |
</td>
|
258 |
</tr>
|
259 |
</table>
|
270 |
<tr>
|
271 |
<th scope="row"><?php esc_html_e( 'WordPress Version in Footer', 'stops-core-theme-and-plugin-updates' ); ?></th>
|
272 |
<td>
|
273 |
+
<input type="radio" name="options[misc_wp_footer]" value="on" id="misc_wp_footer_on" <?php checked( 'on', $options[ 'misc_wp_footer' ] ); ?> /> <label for="misc_wp_footer_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label><br />
|
274 |
<input type="radio" name="options[misc_wp_footer]" value="off" id="misc_wp_footer_off" <?php checked( 'off', $options[ 'misc_wp_footer' ] ); ?> /> <label for="misc_wp_footer_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
275 |
<p class="description"><?php esc_html_e( 'Removes the WordPress version in the footer.', 'stops-core-theme-and-plugin-updates' ); ?></p>
|
276 |
</td>
|
includes/MPSUM_Admin_Dashboard.php
CHANGED
@@ -207,47 +207,6 @@ class MPSUM_Admin_Dashboard {
|
|
207 |
</div><!-- .dashboard-item -->
|
208 |
</div>
|
209 |
</div>
|
210 |
-
<div class="dashboard-main-wrapper">
|
211 |
-
<div class="dashboard-main-header"><?php esc_html_e( 'WordPress Notifications', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
212 |
-
<div class="dashboard-item-wrapper">
|
213 |
-
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails' ] ) { echo 'active'; }?>">
|
214 |
-
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core E-mails', 'stops-core-theme-and-plugin-updates' ); ?>
|
215 |
-
</div><!-- .dashboard-item-header -->
|
216 |
-
<div class="dashboard-item-choice">
|
217 |
-
<input type="checkbox" name="options[notification_core_update_emails]" value="off" />
|
218 |
-
<input type="checkbox" data-context="core" data-action="notification_core_update_emails" class="dashboard-hide" name="options[notification_core_update_emails]" value="on" id="notification_core_update_emails_on" <?php checked( 'on', $options[ 'notification_core_update_emails' ] ); ?> /> <label for="notification_core_update_emails_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
219 |
-
</div><!-- .dashboard-item-choice -->
|
220 |
-
</div><!-- dashboard-item-->
|
221 |
-
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails_plugins' ] ) { echo 'active'; }?>">
|
222 |
-
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core Plugin Emails', 'stops-core-theme-and-plugin-updates' ); ?>
|
223 |
-
</div><!-- .dashboard-item-header -->
|
224 |
-
<div class="dashboard-item-choice">
|
225 |
-
<input type="checkbox" name="options[notification_core_update_emails_plugins]" value="off" />
|
226 |
-
<input type="checkbox" data-context="core" data-action="notification_core_update_emails_plugins" class="dashboard-hide" name="options[all_updates]" value="on" id="notification_core_update_emails_plugins_on" <?php checked( 'on', $options[ 'notification_core_update_emails_plugins' ] ); ?> /> <label for="notification_core_update_emails_plugins_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
227 |
-
</div><!-- .dashboard-item-choice -->
|
228 |
-
</div><!-- dashboard-item-->
|
229 |
-
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails_themes' ] ) { echo 'active'; }?>">
|
230 |
-
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core Theme Emails', 'stops-core-theme-and-plugin-updates' ); ?>
|
231 |
-
</div><!-- .dashboard-item-header -->
|
232 |
-
<div class="dashboard-item-choice">
|
233 |
-
<input type="checkbox" name="options[notification_core_update_emails_themes]" value="off" />
|
234 |
-
<input type="checkbox" data-context="core" data-action="notification_core_update_emails_themes" class="dashboard-hide" name="options[notification_core_update_emails_themes]" value="on" id="notification_core_update_emails_themes_on" <?php checked( 'on', $options[ 'notification_core_update_emails_themes' ] ); ?> /> <label for="notification_core_update_emails_themes_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
235 |
-
</div><!-- .dashboard-item-choice -->
|
236 |
-
</div><!-- dashboard-item-->
|
237 |
-
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails_translations' ] ) { echo 'active'; }?>">
|
238 |
-
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core Translation Emails', 'stops-core-theme-and-plugin-updates' ); ?>
|
239 |
-
</div><!-- .dashboard-item-header -->
|
240 |
-
<div class="dashboard-item-choice">
|
241 |
-
|
242 |
-
<input type="checkbox" name="options[notification_core_update_emails_translations]" value="off" />
|
243 |
-
<input type="checkbox" data-context="core" data-action="notification_core_update_emails_translations" class="dashboard-hide" name="options[notification_core_update_emails_translations]" value="on" id="notification_core_update_emails_translations_on" <?php checked( 'on', $options[ 'notification_core_update_emails_translations' ] ); ?> /> <label for="notification_core_update_emails_translations_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
244 |
-
</div><!-- .dashboard-item-choice -->
|
245 |
-
</div><!-- dashboard-item-->
|
246 |
-
</div><!-- .dashboard-item-wrapper -->
|
247 |
-
</div><!--- .dashboard-main-wrapper -->
|
248 |
-
</div><!-- #dashboard-main-columns -->
|
249 |
-
|
250 |
-
<div id="dashboard-child-columns">
|
251 |
<!-- Plugin / Theme Updates -->
|
252 |
<div class="dashboard-main-wrapper dashboard-plugin-theme-updates">
|
253 |
<div class="dashboard-main-header"><?php esc_html_e( 'Plugin and Theme Updates', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
@@ -341,6 +300,9 @@ class MPSUM_Admin_Dashboard {
|
|
341 |
</div><!-- .dashboard-item-wrapper -->
|
342 |
</div><!-- .dashboard-tab-plugins -->
|
343 |
</div><!--- .dashboard-main-wrapper -->
|
|
|
|
|
|
|
344 |
<!-- Plugin / Theme Updates -->
|
345 |
<div class="dashboard-main-wrapper dashboard-plugin-theme-auto-updates">
|
346 |
<div class="dashboard-main-header"><?php esc_html_e( 'Plugin and Theme Automatic Updates', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
@@ -479,6 +441,53 @@ class MPSUM_Admin_Dashboard {
|
|
479 |
</div><!-- .dashboard-item-wrapper -->
|
480 |
</div><!-- .dashboard-tab-plugins -->
|
481 |
</div><!--- .dashboard-main-wrapper -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
</div><!-- #dashboard-child-columns -->
|
483 |
</div><!-- #dashboard-main-outputs -->
|
484 |
</form>
|
207 |
</div><!-- .dashboard-item -->
|
208 |
</div>
|
209 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
<!-- Plugin / Theme Updates -->
|
211 |
<div class="dashboard-main-wrapper dashboard-plugin-theme-updates">
|
212 |
<div class="dashboard-main-header"><?php esc_html_e( 'Plugin and Theme Updates', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
300 |
</div><!-- .dashboard-item-wrapper -->
|
301 |
</div><!-- .dashboard-tab-plugins -->
|
302 |
</div><!--- .dashboard-main-wrapper -->
|
303 |
+
</div><!-- #dashboard-main-columns -->
|
304 |
+
|
305 |
+
<div id="dashboard-child-columns">
|
306 |
<!-- Plugin / Theme Updates -->
|
307 |
<div class="dashboard-main-wrapper dashboard-plugin-theme-auto-updates">
|
308 |
<div class="dashboard-main-header"><?php esc_html_e( 'Plugin and Theme Automatic Updates', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
441 |
</div><!-- .dashboard-item-wrapper -->
|
442 |
</div><!-- .dashboard-tab-plugins -->
|
443 |
</div><!--- .dashboard-main-wrapper -->
|
444 |
+
<div class="dashboard-main-wrapper">
|
445 |
+
<div class="dashboard-main-header">
|
446 |
+
<?php
|
447 |
+
$options = MPSUM_Updates_Manager::get_options( 'core' );
|
448 |
+
$options = wp_parse_args( $options, MPSUM_Admin_Core::get_defaults() );
|
449 |
+
?>
|
450 |
+
<?php esc_html_e( 'WordPress Notifications', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
451 |
+
<div class="dashboard-item-wrapper">
|
452 |
+
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails' ] ) { echo 'active'; }?>">
|
453 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core E-mails', 'stops-core-theme-and-plugin-updates' ); ?>
|
454 |
+
</div><!-- .dashboard-item-header -->
|
455 |
+
<div class="dashboard-item-choice">
|
456 |
+
<input type="checkbox" name="options[notification_core_update_emails]" value="off" />
|
457 |
+
<input type="checkbox" data-context="core" data-action="notification_core_update_emails" class="dashboard-hide" name="options[notification_core_update_emails]" value="off" id="notification_core_update_emails_on" <?php checked( 'on', $options[ 'notification_core_update_emails' ] ); ?> /> <label for="notification_core_update_emails_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
458 |
+
</div><!-- .dashboard-item-choice -->
|
459 |
+
</div><!-- dashboard-item-->
|
460 |
+
<?php
|
461 |
+
/* To be added pre 4.5 assuming filter is in place */
|
462 |
+
/*
|
463 |
+
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails_plugins' ] ) { echo 'active'; }?>">
|
464 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core Plugin Emails', 'stops-core-theme-and-plugin-updates' ); ?>
|
465 |
+
</div><!-- .dashboard-item-header -->
|
466 |
+
<div class="dashboard-item-choice">
|
467 |
+
<input type="checkbox" name="options[notification_core_update_emails_plugins]" value="off" />
|
468 |
+
<input type="checkbox" data-context="core" data-action="notification_core_update_emails_plugins" class="dashboard-hide" name="options[all_updates]" value="on" id="notification_core_update_emails_plugins_on" <?php checked( 'on', $options[ 'notification_core_update_emails_plugins' ] ); ?> /> <label for="notification_core_update_emails_plugins_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
469 |
+
</div><!-- .dashboard-item-choice -->
|
470 |
+
</div><!-- dashboard-item-->
|
471 |
+
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails_themes' ] ) { echo 'active'; }?>">
|
472 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core Theme Emails', 'stops-core-theme-and-plugin-updates' ); ?>
|
473 |
+
</div><!-- .dashboard-item-header -->
|
474 |
+
<div class="dashboard-item-choice">
|
475 |
+
<input type="checkbox" name="options[notification_core_update_emails_themes]" value="off" />
|
476 |
+
<input type="checkbox" data-context="core" data-action="notification_core_update_emails_themes" class="dashboard-hide" name="options[notification_core_update_emails_themes]" value="on" id="notification_core_update_emails_themes_on" <?php checked( 'on', $options[ 'notification_core_update_emails_themes' ] ); ?> /> <label for="notification_core_update_emails_themes_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
477 |
+
</div><!-- .dashboard-item-choice -->
|
478 |
+
</div><!-- dashboard-item-->
|
479 |
+
<div class="dashboard-item <?php if( 'on' == $options[ 'notification_core_update_emails_translations' ] ) { echo 'active'; }?>">
|
480 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'Core Translation Emails', 'stops-core-theme-and-plugin-updates' ); ?>
|
481 |
+
</div><!-- .dashboard-item-header -->
|
482 |
+
<div class="dashboard-item-choice">
|
483 |
+
|
484 |
+
<input type="checkbox" name="options[notification_core_update_emails_translations]" value="off" />
|
485 |
+
<input type="checkbox" data-context="core" data-action="notification_core_update_emails_translations" class="dashboard-hide" name="options[notification_core_update_emails_translations]" value="on" id="notification_core_update_emails_translations_on" <?php checked( 'on', $options[ 'notification_core_update_emails_translations' ] ); ?> /> <label for="notification_core_update_emails_translations_on"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
486 |
+
</div><!-- .dashboard-item-choice -->
|
487 |
+
</div><!-- dashboard-item-->
|
488 |
+
*/ ?>
|
489 |
+
</div><!-- .dashboard-item-wrapper -->
|
490 |
+
</div><!--- .dashboard-main-wrapper -->
|
491 |
</div><!-- #dashboard-child-columns -->
|
492 |
</div><!-- #dashboard-main-outputs -->
|
493 |
</form>
|
js/admin.js
CHANGED
@@ -5,13 +5,13 @@ jQuery( document ).ready( function( $ ) {
|
|
5 |
$.each( $checkbox, function() {
|
6 |
data_context = jQuery( this ).data( 'context' );
|
7 |
data_action = jQuery( this ).data( 'action' );
|
8 |
-
data_checked = jQuery( this ).
|
|
|
|
|
|
|
|
|
|
|
9 |
data_val = jQuery( this ).val();
|
10 |
-
if ( data_checked == '' || undefined == data_checked ) {
|
11 |
-
data_checked = 'off';
|
12 |
-
} else {
|
13 |
-
data_checked = "on";
|
14 |
-
}
|
15 |
|
16 |
$.post( ajaxurl, { action: 'mpsum_ajax_action', context: data_context, data_action: data_action, _ajax_nonce: $( '#_mpsum' ).val(), checked: data_checked, val: data_val }, function( response ) {
|
17 |
} );
|
5 |
$.each( $checkbox, function() {
|
6 |
data_context = jQuery( this ).data( 'context' );
|
7 |
data_action = jQuery( this ).data( 'action' );
|
8 |
+
data_checked = jQuery( this ).prop('checked');
|
9 |
+
if ( data_checked ) {
|
10 |
+
data_checked = 'on';
|
11 |
+
} else {
|
12 |
+
data_checked = 'off';
|
13 |
+
}
|
14 |
data_val = jQuery( this ).val();
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
$.post( ajaxurl, { action: 'mpsum_ajax_action', context: data_context, data_action: data_action, _ajax_nonce: $( '#_mpsum' ).val(), checked: data_checked, val: data_val }, function( response ) {
|
17 |
} );
|
main.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Updates Manager
|
|
4 |
Plugin URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
5 |
Description: Manage and disable WordPress updates, including core, plugin, theme, and automatic updates - Works with Multisite.
|
6 |
Author: kidsguide, ronalfy, pixolin, roary86
|
7 |
-
Version: 5.4.
|
8 |
Requires at least: 4.3
|
9 |
Author URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
10 |
Contributors: kidsguide, ronalfy
|
@@ -283,7 +283,7 @@ class MPSUM_Updates_Manager {
|
|
283 |
public function plugins_loaded() {
|
284 |
//Skip disable updates if a user is excluded
|
285 |
$disable_updates_skip = false;
|
286 |
-
if ( current_user_can( '
|
287 |
$current_user = wp_get_current_user();
|
288 |
$current_user_id = $current_user->ID;
|
289 |
$excluded_users = MPSUM_Updates_Manager::get_options( 'excluded_users' );
|
@@ -361,7 +361,7 @@ class MPSUM_Updates_Manager {
|
|
361 |
|
362 |
}
|
363 |
public function ajax_disable_updates() {
|
364 |
-
if ( !current_user_can( '
|
365 |
$options = MPSUM_Updates_Manager::get_options( 'core' );
|
366 |
$options = wp_parse_args( $options, MPSUM_Admin_Core::get_defaults() );
|
367 |
if ( 'on' == $_POST[ 'new_val' ] ) {
|
4 |
Plugin URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
5 |
Description: Manage and disable WordPress updates, including core, plugin, theme, and automatic updates - Works with Multisite.
|
6 |
Author: kidsguide, ronalfy, pixolin, roary86
|
7 |
+
Version: 5.4.2
|
8 |
Requires at least: 4.3
|
9 |
Author URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
10 |
Contributors: kidsguide, ronalfy
|
283 |
public function plugins_loaded() {
|
284 |
//Skip disable updates if a user is excluded
|
285 |
$disable_updates_skip = false;
|
286 |
+
if ( current_user_can( 'install_plugins' ) ) {
|
287 |
$current_user = wp_get_current_user();
|
288 |
$current_user_id = $current_user->ID;
|
289 |
$excluded_users = MPSUM_Updates_Manager::get_options( 'excluded_users' );
|
361 |
|
362 |
}
|
363 |
public function ajax_disable_updates() {
|
364 |
+
if ( !current_user_can( 'install_plugins' ) ) return;
|
365 |
$options = MPSUM_Updates_Manager::get_options( 'core' );
|
366 |
$options = wp_parse_args( $options, MPSUM_Admin_Core::get_defaults() );
|
367 |
if ( 'on' == $_POST[ 'new_val' ] ) {
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: kidsguide, ronalfy, pixolin, roary86
|
3 |
Tags: updates manager, easy updates manager, disable updates manager, disable updates, update control, plugin updates, theme updates, core updates, automatic updates, multisite
|
4 |
Requires at least: 4.3
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 5.4.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Manage all your WordPress updates, including individual plugin/theme updates, automatic updates, and loads more. Also works with WordPress Multisite.
|
@@ -94,6 +94,12 @@ For additional information and FAQs for Easy Updates Manager check out our <a hr
|
|
94 |
|
95 |
== Changelog ==
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
= 5.4.1 =
|
98 |
Released 2015-10-31
|
99 |
|
@@ -159,6 +165,9 @@ In version 5.0.0 we completely re-wrote the plugin to offer a faster and more se
|
|
159 |
|
160 |
== Upgrade Notice ==
|
161 |
|
|
|
|
|
|
|
162 |
= 5.4.1 =
|
163 |
Fixing styling issues where EUM styles were being used elsewhere.
|
164 |
|
2 |
Contributors: kidsguide, ronalfy, pixolin, roary86
|
3 |
Tags: updates manager, easy updates manager, disable updates manager, disable updates, update control, plugin updates, theme updates, core updates, automatic updates, multisite
|
4 |
Requires at least: 4.3
|
5 |
+
Tested up to: 4.4
|
6 |
+
Stable tag: 5.4.2
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Manage all your WordPress updates, including individual plugin/theme updates, automatic updates, and loads more. Also works with WordPress Multisite.
|
94 |
|
95 |
== Changelog ==
|
96 |
|
97 |
+
= 5.4.2 =
|
98 |
+
Released 2015-11-25
|
99 |
+
|
100 |
+
* Removed e-mail options that didn't make it into WordPress 4.4
|
101 |
+
* Fixed GoDaddy issue where plugin wasn't showing up
|
102 |
+
|
103 |
= 5.4.1 =
|
104 |
Released 2015-10-31
|
105 |
|
165 |
|
166 |
== Upgrade Notice ==
|
167 |
|
168 |
+
= 5.4.2 =
|
169 |
+
Fixing GoDaddy permissions issue. Removing options that didn't make it into WordPress 4.4.
|
170 |
+
|
171 |
= 5.4.1 =
|
172 |
Fixing styling issues where EUM styles were being used elsewhere.
|
173 |
|