Version Description
Released 2016-01-15
- Fixed dashboard styles to be more responsive
- Added dashboard JS to preserve states on the Core dashboard tab
Download this release
Release Info
Developer | ronalfy |
Plugin | Easy Updates Manager |
Version | 5.4.3 |
Comparing to | |
See all releases |
Code changes from version 5.4.2 to 5.4.3
- css/style.css +8 -2
- includes/MPSUM_Admin_Dashboard.php +55 -88
- js/admin.js +38 -5
- main.php +1 -26
- readme.txt +12 -3
css/style.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
#dashboard-main-outputs {
|
2 |
text-align: justify;
|
3 |
-
width:
|
4 |
margin:60px auto 0;
|
5 |
}
|
6 |
#dashboard-main-output:after {
|
@@ -10,12 +10,15 @@
|
|
10 |
clear: both;
|
11 |
}
|
12 |
.dashboard-main-wrapper {
|
13 |
-
width:
|
14 |
display: inline-block;
|
15 |
text-align: left;
|
16 |
vertical-align: top;
|
17 |
margin-bottom:30px;
|
18 |
padding-right:30px;
|
|
|
|
|
|
|
19 |
}
|
20 |
#dashboard-main-columns {
|
21 |
margin-bottom:30px;
|
@@ -286,6 +289,9 @@ input:checked ~ input:active {
|
|
286 |
#dashboard-main-outputs .dashboard-main-wrapper {
|
287 |
width: 98.5%;
|
288 |
}
|
|
|
|
|
|
|
289 |
input[type=radio]:checked:before {
|
290 |
margin:0 !important;
|
291 |
}
|
1 |
#dashboard-main-outputs {
|
2 |
text-align: justify;
|
3 |
+
width: 99%;
|
4 |
margin:60px auto 0;
|
5 |
}
|
6 |
#dashboard-main-output:after {
|
10 |
clear: both;
|
11 |
}
|
12 |
.dashboard-main-wrapper {
|
13 |
+
width: 33%;
|
14 |
display: inline-block;
|
15 |
text-align: left;
|
16 |
vertical-align: top;
|
17 |
margin-bottom:30px;
|
18 |
padding-right:30px;
|
19 |
+
-webkit-box-sizing: border-box;
|
20 |
+
-moz-box-sizing: border-box;
|
21 |
+
box-sizing: border-box;
|
22 |
}
|
23 |
#dashboard-main-columns {
|
24 |
margin-bottom:30px;
|
289 |
#dashboard-main-outputs .dashboard-main-wrapper {
|
290 |
width: 98.5%;
|
291 |
}
|
292 |
+
#dashboard-main-outputs {
|
293 |
+
margin-top: 20px;
|
294 |
+
}
|
295 |
input[type=radio]:checked:before {
|
296 |
margin:0 !important;
|
297 |
}
|
includes/MPSUM_Admin_Dashboard.php
CHANGED
@@ -56,96 +56,65 @@ class MPSUM_Admin_Dashboard {
|
|
56 |
*/
|
57 |
public function tab_output() {
|
58 |
$options = MPSUM_Updates_Manager::get_options( 'core' );
|
59 |
-
$options = wp_parse_args( $options, MPSUM_Admin_Core::get_defaults() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
?>
|
61 |
<form id="dashboard-form" method="post">
|
62 |
<?php
|
63 |
wp_nonce_field( 'mpsum_options_save', '_mpsum' );
|
64 |
?>
|
65 |
<div id="dashboard-main-outputs">
|
66 |
-
|
67 |
-
<div class="dashboard-main-
|
68 |
-
|
69 |
-
<div class="dashboard-item
|
70 |
-
<div class="dashboard-item
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
</div><!-- dashboard-item-->
|
88 |
-
<div class="dashboard-item
|
89 |
-
<
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
$checked_value = '';
|
111 |
-
}
|
112 |
-
?>
|
113 |
-
<input id="core-plugin-check_before" type="hidden" value="<?php echo esc_attr( $checked_value ); ?>" />
|
114 |
-
<input type="hidden" name="options[plugin_updates]" value="on" />
|
115 |
-
<input type="checkbox" data-context="core" data-action="plugin_updates" class="dashboard-hide update-option" name="options[plugin_updates]" value="off" id="plugin_updates_off" <?php checked( 'on', $options[ 'plugin_updates' ] ); ?> <?php disabled( true, $disable_core_options ); ?> /> <label for="plugin_updates_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
116 |
-
</div><!-- .dashboard-item-choice -->
|
117 |
-
</div><!-- dashboard-item-->
|
118 |
-
<div class="dashboard-item <?php if ( 'on' == $options[ 'theme_updates' ] ) { echo 'active'; } ?>">
|
119 |
-
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'All Theme Updates', 'stops-core-theme-and-plugin-updates' ); ?>
|
120 |
-
</div><!-- .dashboard-item-header -->
|
121 |
-
<div class="dashboard-item-choice">
|
122 |
-
<?php
|
123 |
-
$checked_value = 'checked';
|
124 |
-
if ( checked( 'off', $options[ 'theme_updates' ], false ) ) {
|
125 |
-
$checked_value = '';
|
126 |
-
}
|
127 |
-
?>
|
128 |
-
<input id="core-theme-check_before" type="hidden" value="<?php echo esc_attr( $checked_value ); ?>" />
|
129 |
-
<input type="hidden" name="options[theme_updates]" value="on" />
|
130 |
-
<input type="checkbox" data-context="core" data-action="theme_updates"class="dashboard-hide update-option" name="options[theme_updates]" value="off" id="theme_updates_off" <?php checked( 'on', $options[ 'theme_updates' ] ); ?> <?php disabled( true, $disable_core_options ); ?> /> <label for="theme_updates_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
131 |
-
</div><!-- .dashboard-item-choice -->
|
132 |
-
</div><!-- dashboard-item-->
|
133 |
-
<div class="dashboard-item <?php if ( 'on' == $options[ 'translation_updates' ] ) { echo 'active'; } ?>">
|
134 |
-
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'All Translation Updates', 'stops-core-theme-and-plugin-updates' ); ?>
|
135 |
-
</div><!-- .dashboard-item-header -->
|
136 |
-
<div class="dashboard-item-choice">
|
137 |
-
<?php
|
138 |
-
$checked_value = 'checked';
|
139 |
-
if ( checked( 'off', $options[ 'translation_updates' ], false ) ) {
|
140 |
-
$checked_value = '';
|
141 |
-
}
|
142 |
-
?>
|
143 |
-
<input id="core-translation-check_before" type="hidden" value="<?php echo esc_attr( $checked_value ); ?>" />
|
144 |
-
<input type="hidden" name="options[translation_updates]" value="on" />
|
145 |
-
<input id="translation_updates_off" data-context="core" data-action="translation_updates" type="checkbox" class="dashboard-hide update-option" name="options[translation_updates]" value="off" <?php checked( 'on', $options[ 'translation_updates' ] ); ?> <?php disabled( true, $disable_core_options ); ?> /> <label for="translation_updates_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
146 |
-
</div><!-- .dashboard-item-choice -->
|
147 |
-
</div><!-- dashboard-item-->
|
148 |
-
</div><!-- .dashboard-item-wrapper -->
|
149 |
</div><!--- .dashboard-main-wrapper -->
|
150 |
|
151 |
<div class="dashboard-main-wrapper">
|
@@ -300,9 +269,7 @@ class MPSUM_Admin_Dashboard {
|
|
300 |
</div><!-- .dashboard-item-wrapper -->
|
301 |
</div><!-- .dashboard-tab-plugins -->
|
302 |
</div><!--- .dashboard-main-wrapper -->
|
303 |
-
|
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 -->
|
@@ -488,7 +455,7 @@ class MPSUM_Admin_Dashboard {
|
|
488 |
*/ ?>
|
489 |
</div><!-- .dashboard-item-wrapper -->
|
490 |
</div><!--- .dashboard-main-wrapper -->
|
491 |
-
|
492 |
</div><!-- #dashboard-main-outputs -->
|
493 |
</form>
|
494 |
<?php
|
56 |
*/
|
57 |
public function tab_output() {
|
58 |
$options = MPSUM_Updates_Manager::get_options( 'core' );
|
59 |
+
$options = $saved_options = wp_parse_args( $options, MPSUM_Admin_Core::get_defaults() );
|
60 |
+
$disable_core_options = false;
|
61 |
+
if( 'off' == $options[ 'all_updates' ] ) {
|
62 |
+
$disable_core_options = true;
|
63 |
+
$options[ 'core_updates' ] = 'off';
|
64 |
+
$options[ 'plugin_updates' ] = 'off';
|
65 |
+
$options[ 'theme_updates' ] = 'off';
|
66 |
+
$options[ 'translation_updates' ] = 'off';
|
67 |
+
}
|
68 |
?>
|
69 |
<form id="dashboard-form" method="post">
|
70 |
<?php
|
71 |
wp_nonce_field( 'mpsum_options_save', '_mpsum' );
|
72 |
?>
|
73 |
<div id="dashboard-main-outputs">
|
74 |
+
<div class="dashboard-main-wrapper main-updates">
|
75 |
+
<div class="dashboard-main-header"><?php esc_html_e( 'WordPress Updates', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
76 |
+
<div class="dashboard-item-wrapper">
|
77 |
+
<div class="dashboard-item <?php if ( 'on' == $options[ 'all_updates' ] ) { echo 'active'; } ?>">
|
78 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'All Updates', 'stops-core-theme-and-plugin-updates' ); ?>
|
79 |
+
</div><!-- .dashboard-item-header -->
|
80 |
+
<div class="dashboard-item-choice">
|
81 |
+
<input type="hidden" name="options[all_updates]" value="off" />
|
82 |
+
<input type="checkbox" data-context="core" data-action="all_updates" class="dashboard-hide" name="options[all_updates]" value="on" id="all_updates_off" <?php checked( 'on', $options[ 'all_updates' ] ); ?> /> <label for="all_updates_off"><?php esc_html_e( 'Enabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
83 |
+
</div><!-- .dashboard-item-choice -->
|
84 |
+
</div><!-- dashboard-item-->
|
85 |
+
<div class="dashboard-item <?php if ( 'on' == $options[ 'core_updates' ] ) { echo 'active'; } ?>">
|
86 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'WordPress Core Updates', 'stops-core-theme-and-plugin-updates' ); ?>
|
87 |
+
</div><!-- .dashboard-item-header -->
|
88 |
+
<div class="dashboard-item-choice">
|
89 |
+
<input type="hidden" name="options[core_updates]" value="on" />
|
90 |
+
<input id="core_updates_off" data-context="core" data-action="core_updates" data-value="<?php echo esc_attr( $saved_options[ 'core_updates' ] ); ?>" type="checkbox" class="dashboard-hide update-option" name="options[core_updates]" value="off" <?php checked( 'on', $options[ 'core_updates' ] ); ?> <?php disabled( true, $disable_core_options ); ?> /> <label for="core_updates_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
91 |
+
</div><!-- .dashboard-item-choice -->
|
92 |
+
</div><!-- dashboard-item-->
|
93 |
+
<div class="dashboard-item <?php if ( 'on' == $options[ 'plugin_updates' ] ) { echo 'active'; } ?>">
|
94 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'All Plugin Updates', 'stops-core-theme-and-plugin-updates' ); ?>
|
95 |
+
</div><!-- .dashboard-item-header -->
|
96 |
+
<div class="dashboard-item-choice">
|
97 |
+
<input type="hidden" name="options[plugin_updates]" value="on" />
|
98 |
+
<input type="checkbox" data-context="core" data-action="plugin_updates" data-value="<?php echo esc_attr( $saved_options[ 'plugin_updates' ] ); ?>" class="dashboard-hide update-option" name="options[plugin_updates]" value="off" id="plugin_updates_off" <?php checked( 'on', $options[ 'plugin_updates' ] ); ?> <?php disabled( true, $disable_core_options ); ?> /> <label for="plugin_updates_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
99 |
+
</div><!-- .dashboard-item-choice -->
|
100 |
+
</div><!-- dashboard-item-->
|
101 |
+
<div class="dashboard-item <?php if ( 'on' == $options[ 'theme_updates' ] ) { echo 'active'; } ?>">
|
102 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'All Theme Updates', 'stops-core-theme-and-plugin-updates' ); ?>
|
103 |
+
</div><!-- .dashboard-item-header -->
|
104 |
+
<div class="dashboard-item-choice">
|
105 |
+
<input type="hidden" name="options[theme_updates]" value="on" />
|
106 |
+
<input type="checkbox" data-context="core" data-action="theme_updates" data-value="<?php echo esc_attr( $saved_options[ 'theme_updates' ] ); ?>" class="dashboard-hide update-option" name="options[theme_updates]" value="off" id="theme_updates_off" <?php checked( 'on', $options[ 'theme_updates' ] ); ?> <?php disabled( true, $disable_core_options ); ?> /> <label for="theme_updates_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
107 |
+
</div><!-- .dashboard-item-choice -->
|
108 |
+
</div><!-- dashboard-item-->
|
109 |
+
<div class="dashboard-item <?php if ( 'on' == $options[ 'translation_updates' ] ) { echo 'active'; } ?>">
|
110 |
+
<div class="dashboard-item-header input-radio"><?php esc_html_e( 'All Translation Updates', 'stops-core-theme-and-plugin-updates' ); ?>
|
111 |
+
</div><!-- .dashboard-item-header -->
|
112 |
+
<div class="dashboard-item-choice">
|
113 |
+
<input type="hidden" name="options[translation_updates]" value="on" />
|
114 |
+
<input id="translation_updates_off" data-context="core" data-action="translation_updates" data-value="<?php echo esc_attr( $saved_options[ 'translation_updates' ] ); ?>" type="checkbox" class="dashboard-hide update-option" name="options[translation_updates]" value="off" <?php checked( 'on', $options[ 'translation_updates' ] ); ?> <?php disabled( true, $disable_core_options ); ?> /> <label for="translation_updates_off"><?php esc_html_e( 'Disabled', 'stops-core-theme-and-plugin-updates' ); ?></label>
|
115 |
+
</div><!-- .dashboard-item-choice -->
|
116 |
+
</div><!-- dashboard-item-->
|
117 |
+
</div><!-- .dashboard-item-wrapper -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
</div><!--- .dashboard-main-wrapper -->
|
119 |
|
120 |
<div class="dashboard-main-wrapper">
|
269 |
</div><!-- .dashboard-item-wrapper -->
|
270 |
</div><!-- .dashboard-tab-plugins -->
|
271 |
</div><!--- .dashboard-main-wrapper -->
|
272 |
+
|
|
|
|
|
273 |
<!-- Plugin / Theme Updates -->
|
274 |
<div class="dashboard-main-wrapper dashboard-plugin-theme-auto-updates">
|
275 |
<div class="dashboard-main-header"><?php esc_html_e( 'Plugin and Theme Automatic Updates', 'stops-core-theme-and-plugin-updates' ); ?></div><!-- .dashboard-main-header -->
|
455 |
*/ ?>
|
456 |
</div><!-- .dashboard-item-wrapper -->
|
457 |
</div><!--- .dashboard-main-wrapper -->
|
458 |
+
|
459 |
</div><!-- #dashboard-main-outputs -->
|
460 |
</form>
|
461 |
<?php
|
js/admin.js
CHANGED
@@ -18,6 +18,29 @@ jQuery( document ).ready( function( $ ) {
|
|
18 |
|
19 |
} );
|
20 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
/* For when other button is clicked */
|
23 |
$( '.dashboard-item' ).on( 'click', function( e ) {
|
@@ -33,20 +56,30 @@ jQuery( document ).ready( function( $ ) {
|
|
33 |
$unchecked_boxes = $input_wrapper.find( 'input:checkbox:not(:checked)' );
|
34 |
|
35 |
if ( $checked_boxes.length > 0 ) {
|
|
|
|
|
|
|
|
|
36 |
$checked_boxes.prop( 'checked', false );
|
37 |
$checked_boxes.parent().parent().toggleClass( 'active' );
|
|
|
|
|
|
|
38 |
eum_checkbox_save( $checked_boxes );
|
39 |
} else if( $unchecked_boxes.length > 0 ) {
|
|
|
|
|
|
|
|
|
40 |
$unchecked_boxes.prop( 'checked', true );
|
41 |
$unchecked_boxes.parent().parent().toggleClass( 'active' );
|
|
|
|
|
|
|
42 |
eum_checkbox_save( $unchecked_boxes );
|
43 |
}
|
44 |
} );
|
45 |
|
46 |
-
$( '.dashboard-item' ).on( 'change', function( e ) {
|
47 |
-
eum_checkbox_save( jQuery( this ) );
|
48 |
-
} );
|
49 |
-
|
50 |
|
51 |
/* Plugin / Theme Tabs */
|
52 |
$( '.dashboard-plugin-theme-updates' ).on( 'click', 'a', function( e ) {
|
@@ -57,7 +90,7 @@ jQuery( document ).ready( function( $ ) {
|
|
57 |
$( '.dashboard-plugin-theme-updates .dashboard-tab-header-plugin' ).toggleClass( 'active' );
|
58 |
$( '.dashboard-plugin-theme-updates .dashboard-tab-header-theme' ).toggleClass( 'active' );
|
59 |
} );
|
60 |
-
/*
|
61 |
$( '.dashboard-plugin-theme-auto-updates' ).on( 'click', 'a', function( e ) {
|
62 |
e.preventDefault();
|
63 |
tag_action = jQuery( this ).attr( 'data-tab-action' );
|
18 |
|
19 |
} );
|
20 |
};
|
21 |
+
function eum_toggle_main( $checkbox ) {
|
22 |
+
if( $checkbox.is( ':checked' ) ) {
|
23 |
+
$checkboxes_to_enable = $( ".main-updates input[type='checkbox']" );
|
24 |
+
$.each( $checkboxes_to_enable, function( index, checkbox ) {
|
25 |
+
checkbox = $( checkbox );
|
26 |
+
$( checkbox ).prop( 'disabled', false );
|
27 |
+
if ( checkbox.data( 'value' ) == 'on' ) {
|
28 |
+
checkbox.parent().parent().addClass( 'active' );
|
29 |
+
$( checkbox ).prop( 'checked', true );
|
30 |
+
}
|
31 |
+
} );
|
32 |
+
} else {
|
33 |
+
$( $checkbox ).prop( 'disabled', false );
|
34 |
+
$checkboxes_to_disable = $( ".main-updates input[type='checkbox']" );
|
35 |
+
$.each( $checkboxes_to_disable, function( index, checkbox ) {
|
36 |
+
checkbox = $( checkbox );
|
37 |
+
checkbox.prop( 'checked', false );
|
38 |
+
checkbox.prop( 'disabled', true );
|
39 |
+
checkbox.parent().parent().removeClass( 'active' );
|
40 |
+
} );
|
41 |
+
}
|
42 |
+
$( $checkbox ).prop( 'disabled', false );
|
43 |
+
};
|
44 |
|
45 |
/* For when other button is clicked */
|
46 |
$( '.dashboard-item' ).on( 'click', function( e ) {
|
56 |
$unchecked_boxes = $input_wrapper.find( 'input:checkbox:not(:checked)' );
|
57 |
|
58 |
if ( $checked_boxes.length > 0 ) {
|
59 |
+
if ( $checked_boxes.prop( 'disabled' ) == true ) {
|
60 |
+
return;
|
61 |
+
}
|
62 |
+
$checked_boxes.data( 'value', 'off' );
|
63 |
$checked_boxes.prop( 'checked', false );
|
64 |
$checked_boxes.parent().parent().toggleClass( 'active' );
|
65 |
+
if ( $checked_boxes.prop( 'id' ) == 'all_updates_off' ) {
|
66 |
+
eum_toggle_main( $checked_boxes );
|
67 |
+
}
|
68 |
eum_checkbox_save( $checked_boxes );
|
69 |
} else if( $unchecked_boxes.length > 0 ) {
|
70 |
+
if ( $unchecked_boxes.prop( 'disabled' ) == true ) {
|
71 |
+
return;
|
72 |
+
}
|
73 |
+
$unchecked_boxes.data( 'value', 'on' );
|
74 |
$unchecked_boxes.prop( 'checked', true );
|
75 |
$unchecked_boxes.parent().parent().toggleClass( 'active' );
|
76 |
+
if ( $unchecked_boxes.prop( 'id' ) == 'all_updates_off' ) {
|
77 |
+
eum_toggle_main( $unchecked_boxes );
|
78 |
+
}
|
79 |
eum_checkbox_save( $unchecked_boxes );
|
80 |
}
|
81 |
} );
|
82 |
|
|
|
|
|
|
|
|
|
83 |
|
84 |
/* Plugin / Theme Tabs */
|
85 |
$( '.dashboard-plugin-theme-updates' ).on( 'click', 'a', function( e ) {
|
90 |
$( '.dashboard-plugin-theme-updates .dashboard-tab-header-plugin' ).toggleClass( 'active' );
|
91 |
$( '.dashboard-plugin-theme-updates .dashboard-tab-header-theme' ).toggleClass( 'active' );
|
92 |
} );
|
93 |
+
/* Automatic Updates */
|
94 |
$( '.dashboard-plugin-theme-auto-updates' ).on( 'click', 'a', function( e ) {
|
95 |
e.preventDefault();
|
96 |
tag_action = jQuery( this ).attr( 'data-tab-action' );
|
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
|
@@ -295,7 +295,6 @@ class MPSUM_Updates_Manager {
|
|
295 |
MPSUM_Disable_Updates::run();
|
296 |
}
|
297 |
|
298 |
-
add_action( 'wp_ajax_mpsum_disable_updates', array( $this, 'ajax_disable_updates' ) );
|
299 |
add_action( 'wp_ajax_mpsum_ajax_action', array( $this, 'ajax_update_option' ) );
|
300 |
|
301 |
|
@@ -359,30 +358,6 @@ class MPSUM_Updates_Manager {
|
|
359 |
|
360 |
die( $context );
|
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' ] ) {
|
368 |
-
$options[ 'all_updates' ] = 'on';
|
369 |
-
} else {
|
370 |
-
$options[ 'all_updates' ] = 'off';
|
371 |
-
}
|
372 |
-
MPSUM_Updates_Manager::update_options( $options, 'core' );
|
373 |
-
if ( $options[ 'all_updates' ] == 'off' ) {
|
374 |
-
$return = array(
|
375 |
-
'core_updates_off',
|
376 |
-
'plugin_updates_off',
|
377 |
-
'theme_updates_off',
|
378 |
-
'translation_updates_off',
|
379 |
-
);
|
380 |
-
|
381 |
-
} else {
|
382 |
-
$return = array();
|
383 |
-
}
|
384 |
-
|
385 |
-
die( json_encode( $return ) );
|
386 |
}
|
387 |
|
388 |
/**
|
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.3
|
8 |
Requires at least: 4.3
|
9 |
Author URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
10 |
Contributors: kidsguide, ronalfy
|
295 |
MPSUM_Disable_Updates::run();
|
296 |
}
|
297 |
|
|
|
298 |
add_action( 'wp_ajax_mpsum_ajax_action', array( $this, 'ajax_update_option' ) );
|
299 |
|
300 |
|
358 |
|
359 |
die( $context );
|
360 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
}
|
362 |
|
363 |
/**
|
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.2 =
|
98 |
Released 2015-11-25
|
99 |
|
@@ -165,6 +171,9 @@ In version 5.0.0 we completely re-wrote the plugin to offer a faster and more se
|
|
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 |
|
@@ -193,4 +202,4 @@ Fixing internationalization issues and adding German translation.
|
|
193 |
Only upgrade if using WordPress 4.3. Many changes to ensure WordPress 4.3 compatibility.
|
194 |
|
195 |
= 5.0.0 =
|
196 |
-
Major plugin rewrite and update. Updating will port over your old options. We recommend you perform a backup of your site before updating. Now you can configure just about any aspect of WordPress updates.
|
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.5
|
6 |
+
Stable tag: 5.4.3
|
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.3 =
|
98 |
+
Released 2016-01-15
|
99 |
+
|
100 |
+
* Fixed dashboard styles to be more responsive
|
101 |
+
* Added dashboard JS to preserve states on the Core dashboard tab
|
102 |
+
|
103 |
= 5.4.2 =
|
104 |
Released 2015-11-25
|
105 |
|
171 |
|
172 |
== Upgrade Notice ==
|
173 |
|
174 |
+
= 5.4.3 =
|
175 |
+
CSS and JS enhancements for the main dashboard tab
|
176 |
+
|
177 |
= 5.4.2 =
|
178 |
Fixing GoDaddy permissions issue. Removing options that didn't make it into WordPress 4.4.
|
179 |
|
202 |
Only upgrade if using WordPress 4.3. Many changes to ensure WordPress 4.3 compatibility.
|
203 |
|
204 |
= 5.0.0 =
|
205 |
+
Major plugin rewrite and update. Updating will port over your old options. We recommend you perform a backup of your site before updating. Now you can configure just about any aspect of WordPress updates.
|