Version Description
Released 2016-05-20
- Added new filter:
mpsum_default_optionsto set defaults programmatically - Bug fix: CSS styles for dashboard were applied to the list views.
Download this release
Release Info
| Developer | ronalfy |
| Plugin | |
| Version | 6.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 6.0.3 to 6.0.5
- css/style.css +12 -12
- includes/MPSUM_Admin_Core.php +27 -19
- main.php +1 -1
- readme.txt +11 -4
css/style.css
CHANGED
|
@@ -224,7 +224,7 @@ label{
|
|
| 224 |
|
| 225 |
}
|
| 226 |
|
| 227 |
-
input[type=radio] {
|
| 228 |
-webkit-appearance: none; /* remove default */
|
| 229 |
margin: 10px;
|
| 230 |
width: 15px;
|
|
@@ -239,19 +239,19 @@ input[type=radio] {
|
|
| 239 |
-webkit-transform .25s cubic-bezier(.8, 0, 1, 1);
|
| 240 |
}
|
| 241 |
|
| 242 |
-
input[type=checkbox]:checked:before,
|
| 243 |
-
input[type=radio]:checked:before {
|
| 244 |
background-color:#0daf88 !important;
|
| 245 |
}
|
| 246 |
|
| 247 |
-
input[type=checkbox]:checked,
|
| 248 |
-
input[type="radio"]:checked {
|
| 249 |
-webkit-transition: background-position .2s .15s cubic-bezier(0, 0, .2, 1),
|
| 250 |
-webkit-transform .25s cubic-bezier(0, 0, .2, 1);
|
| 251 |
background:rgba(37, 175, 118, 1);
|
| 252 |
border:1px solid #0daf88;
|
| 253 |
}
|
| 254 |
-
input[type=radio]:active {
|
| 255 |
-webkit-transform: scale(1.5);
|
| 256 |
-webkit-transition: -webkit-transform .1s cubic-bezier(0, 0, .2, 1);
|
| 257 |
background:rgba(37, 175, 118, 1);
|
|
@@ -259,15 +259,15 @@ input[type=radio]:active {
|
|
| 259 |
|
| 260 |
|
| 261 |
/* The up/down direction logic */
|
| 262 |
-
input,
|
| 263 |
-
input:active {
|
| 264 |
background-position: 0 24px;
|
| 265 |
}
|
| 266 |
-
input:checked {
|
| 267 |
background-position: 0 0;
|
| 268 |
}
|
| 269 |
-
input:checked ~ input,
|
| 270 |
-
input:checked ~ input:active {
|
| 271 |
background-position: 0 -24px;
|
| 272 |
}
|
| 273 |
.button.delete {
|
|
@@ -299,7 +299,7 @@ input:checked ~ input:active {
|
|
| 299 |
#dashboard-main-outputs {
|
| 300 |
margin-top: 20px;
|
| 301 |
}
|
| 302 |
-
input[type=radio]:checked:before {
|
| 303 |
margin:0 !important;
|
| 304 |
}
|
| 305 |
}
|
| 224 |
|
| 225 |
}
|
| 226 |
|
| 227 |
+
#dashboard-main-outputs input[type=radio] {
|
| 228 |
-webkit-appearance: none; /* remove default */
|
| 229 |
margin: 10px;
|
| 230 |
width: 15px;
|
| 239 |
-webkit-transform .25s cubic-bezier(.8, 0, 1, 1);
|
| 240 |
}
|
| 241 |
|
| 242 |
+
#dashboard-main-outputs input[type=checkbox]:checked:before,
|
| 243 |
+
#dashboard-main-outputs input[type=radio]:checked:before {
|
| 244 |
background-color:#0daf88 !important;
|
| 245 |
}
|
| 246 |
|
| 247 |
+
#dashboard-main-outputs input[type=checkbox]:checked,
|
| 248 |
+
#dashboard-main-outputs input[type="radio"]:checked {
|
| 249 |
-webkit-transition: background-position .2s .15s cubic-bezier(0, 0, .2, 1),
|
| 250 |
-webkit-transform .25s cubic-bezier(0, 0, .2, 1);
|
| 251 |
background:rgba(37, 175, 118, 1);
|
| 252 |
border:1px solid #0daf88;
|
| 253 |
}
|
| 254 |
+
#dashboard-main-outputs input[type=radio]:active {
|
| 255 |
-webkit-transform: scale(1.5);
|
| 256 |
-webkit-transition: -webkit-transform .1s cubic-bezier(0, 0, .2, 1);
|
| 257 |
background:rgba(37, 175, 118, 1);
|
| 259 |
|
| 260 |
|
| 261 |
/* The up/down direction logic */
|
| 262 |
+
#dashboard-main-outputs input,
|
| 263 |
+
#dashboard-main-outputs input:active {
|
| 264 |
background-position: 0 24px;
|
| 265 |
}
|
| 266 |
+
#dashboard-main-outputs input:checked {
|
| 267 |
background-position: 0 0;
|
| 268 |
}
|
| 269 |
+
#dashboard-main-outputs input:checked ~ input,
|
| 270 |
+
#dashboard-main-outputs input:checked ~ input:active {
|
| 271 |
background-position: 0 -24px;
|
| 272 |
}
|
| 273 |
.button.delete {
|
| 299 |
#dashboard-main-outputs {
|
| 300 |
margin-top: 20px;
|
| 301 |
}
|
| 302 |
+
#dashboard-main-outputs input[type=radio]:checked:before {
|
| 303 |
margin:0 !important;
|
| 304 |
}
|
| 305 |
}
|
includes/MPSUM_Admin_Core.php
CHANGED
|
@@ -17,7 +17,7 @@ class MPSUM_Admin_Core {
|
|
| 17 |
* @var string $slug
|
| 18 |
*/
|
| 19 |
private $slug = '';
|
| 20 |
-
|
| 21 |
/**
|
| 22 |
* Holds the tab name
|
| 23 |
*
|
|
@@ -26,7 +26,7 @@ class MPSUM_Admin_Core {
|
|
| 26 |
* @var string $tab
|
| 27 |
*/
|
| 28 |
private $tab = 'main';
|
| 29 |
-
|
| 30 |
/**
|
| 31 |
* Class constructor.
|
| 32 |
*
|
|
@@ -40,10 +40,10 @@ class MPSUM_Admin_Core {
|
|
| 40 |
public function __construct( $slug = '' ) {
|
| 41 |
$this->slug = $slug;
|
| 42 |
//Admin Tab Actions
|
| 43 |
-
add_action( 'mpsum_admin_tab_main', array( $this, 'tab_output' ) );
|
| 44 |
add_action( 'admin_init', array( $this, 'maybe_save_options' ) );
|
| 45 |
}
|
| 46 |
-
|
| 47 |
/**
|
| 48 |
* Get tab defaults.
|
| 49 |
*
|
|
@@ -55,7 +55,15 @@ class MPSUM_Admin_Core {
|
|
| 55 |
* @return array Associative array of default options
|
| 56 |
*/
|
| 57 |
public static function get_defaults() {
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
'all_updates' => 'on',
|
| 60 |
'core_updates' => 'on',
|
| 61 |
'plugin_updates' => 'on',
|
|
@@ -73,16 +81,16 @@ class MPSUM_Admin_Core {
|
|
| 73 |
'notification_core_update_emails_plugins' => 'on',
|
| 74 |
'notification_core_update_emails_themes' => 'on',
|
| 75 |
'notification_core_update_emails_translations' => 'on',
|
| 76 |
-
'logs' => 'off'
|
| 77 |
-
);
|
| 78 |
}
|
| 79 |
-
|
| 80 |
/**
|
| 81 |
* Determine whether the save the main options or not.
|
| 82 |
*
|
| 83 |
* Determine whether the save the main options or not.
|
| 84 |
*
|
| 85 |
-
* @since 5.0.0
|
| 86 |
* @access public
|
| 87 |
* @see __construct
|
| 88 |
* @internal Uses admin_init action
|
|
@@ -95,15 +103,15 @@ class MPSUM_Admin_Core {
|
|
| 95 |
if ( !isset( $_POST[ 'options' ] ) ) return;
|
| 96 |
if ( 'mpsum_save_core_options' !== $_REQUEST[ 'action' ] ) return;
|
| 97 |
check_admin_referer( 'mpsum_main_update', '_mpsum' );
|
| 98 |
-
|
| 99 |
$query_args = array();
|
| 100 |
$query_args[ 'updated' ] = "1";
|
| 101 |
$query_args[ 'tab' ] = 'main';
|
| 102 |
-
|
| 103 |
//Save options
|
| 104 |
$options = $_POST[ 'options' ];
|
| 105 |
if ( isset( $_POST[ 'reset' ] ) ) {
|
| 106 |
-
$options =
|
| 107 |
}
|
| 108 |
$options_to_save = array();
|
| 109 |
foreach( $options as $key => $value ) {
|
|
@@ -111,26 +119,26 @@ class MPSUM_Admin_Core {
|
|
| 111 |
$options_to_save[ sanitize_key( $key ) ] = $option_value;
|
| 112 |
}
|
| 113 |
MPSUM_Updates_Manager::update_options( $options_to_save, 'core' );
|
| 114 |
-
|
| 115 |
//Redirect back to settings screen
|
| 116 |
wp_redirect( esc_url_raw( add_query_arg( $query_args, MPSUM_Admin::get_url() ) ) );
|
| 117 |
exit;
|
| 118 |
}
|
| 119 |
-
|
| 120 |
/**
|
| 121 |
* Output the HTML interface for the main tab.
|
| 122 |
*
|
| 123 |
* Output the HTML interface for the main tab.
|
| 124 |
*
|
| 125 |
-
* @since 5.0.0
|
| 126 |
* @access public
|
| 127 |
* @see __construct
|
| 128 |
* @internal Uses the mpsum_admin_tab_main action
|
| 129 |
*/
|
| 130 |
public function tab_output() {
|
| 131 |
$options = MPSUM_Updates_Manager::get_options( 'core' );
|
| 132 |
-
$options = wp_parse_args( $options,
|
| 133 |
-
|
| 134 |
if ( isset( $_GET[ 'updated' ] ) ) {
|
| 135 |
$message = __( 'Options saved.', 'stops-core-theme-and-plugin-updates' );
|
| 136 |
?>
|
|
@@ -138,7 +146,7 @@ class MPSUM_Admin_Core {
|
|
| 138 |
<div class="updated"><p><strong><?php echo esc_html( $message ); ?></strong></p></div>
|
| 139 |
<?php
|
| 140 |
}
|
| 141 |
-
|
| 142 |
?>
|
| 143 |
<form action="<?php echo esc_url( add_query_arg( array() ) ); ?>" method="post">
|
| 144 |
<h3><?php esc_html_e( 'Global Settings', 'stops-core-theme-and-plugin-updates' ); ?></h3>
|
|
@@ -289,4 +297,4 @@ class MPSUM_Admin_Core {
|
|
| 289 |
</form>
|
| 290 |
<?php
|
| 291 |
} //end tab_output_plugins
|
| 292 |
-
}
|
| 17 |
* @var string $slug
|
| 18 |
*/
|
| 19 |
private $slug = '';
|
| 20 |
+
|
| 21 |
/**
|
| 22 |
* Holds the tab name
|
| 23 |
*
|
| 26 |
* @var string $tab
|
| 27 |
*/
|
| 28 |
private $tab = 'main';
|
| 29 |
+
|
| 30 |
/**
|
| 31 |
* Class constructor.
|
| 32 |
*
|
| 40 |
public function __construct( $slug = '' ) {
|
| 41 |
$this->slug = $slug;
|
| 42 |
//Admin Tab Actions
|
| 43 |
+
add_action( 'mpsum_admin_tab_main', array( $this, 'tab_output' ) );
|
| 44 |
add_action( 'admin_init', array( $this, 'maybe_save_options' ) );
|
| 45 |
}
|
| 46 |
+
|
| 47 |
/**
|
| 48 |
* Get tab defaults.
|
| 49 |
*
|
| 55 |
* @return array Associative array of default options
|
| 56 |
*/
|
| 57 |
public static function get_defaults() {
|
| 58 |
+
|
| 59 |
+
/**
|
| 60 |
+
* Filter the default plugin configuration.
|
| 61 |
+
*
|
| 62 |
+
* @since 6.0.5
|
| 63 |
+
*
|
| 64 |
+
* @param array associative array of options
|
| 65 |
+
*/
|
| 66 |
+
return (array) apply_filters( 'mpsum_default_options', array(
|
| 67 |
'all_updates' => 'on',
|
| 68 |
'core_updates' => 'on',
|
| 69 |
'plugin_updates' => 'on',
|
| 81 |
'notification_core_update_emails_plugins' => 'on',
|
| 82 |
'notification_core_update_emails_themes' => 'on',
|
| 83 |
'notification_core_update_emails_translations' => 'on',
|
| 84 |
+
'logs' => 'off',
|
| 85 |
+
) );
|
| 86 |
}
|
| 87 |
+
|
| 88 |
/**
|
| 89 |
* Determine whether the save the main options or not.
|
| 90 |
*
|
| 91 |
* Determine whether the save the main options or not.
|
| 92 |
*
|
| 93 |
+
* @since 5.0.0
|
| 94 |
* @access public
|
| 95 |
* @see __construct
|
| 96 |
* @internal Uses admin_init action
|
| 103 |
if ( !isset( $_POST[ 'options' ] ) ) return;
|
| 104 |
if ( 'mpsum_save_core_options' !== $_REQUEST[ 'action' ] ) return;
|
| 105 |
check_admin_referer( 'mpsum_main_update', '_mpsum' );
|
| 106 |
+
|
| 107 |
$query_args = array();
|
| 108 |
$query_args[ 'updated' ] = "1";
|
| 109 |
$query_args[ 'tab' ] = 'main';
|
| 110 |
+
|
| 111 |
//Save options
|
| 112 |
$options = $_POST[ 'options' ];
|
| 113 |
if ( isset( $_POST[ 'reset' ] ) ) {
|
| 114 |
+
$options = self::get_defaults();
|
| 115 |
}
|
| 116 |
$options_to_save = array();
|
| 117 |
foreach( $options as $key => $value ) {
|
| 119 |
$options_to_save[ sanitize_key( $key ) ] = $option_value;
|
| 120 |
}
|
| 121 |
MPSUM_Updates_Manager::update_options( $options_to_save, 'core' );
|
| 122 |
+
|
| 123 |
//Redirect back to settings screen
|
| 124 |
wp_redirect( esc_url_raw( add_query_arg( $query_args, MPSUM_Admin::get_url() ) ) );
|
| 125 |
exit;
|
| 126 |
}
|
| 127 |
+
|
| 128 |
/**
|
| 129 |
* Output the HTML interface for the main tab.
|
| 130 |
*
|
| 131 |
* Output the HTML interface for the main tab.
|
| 132 |
*
|
| 133 |
+
* @since 5.0.0
|
| 134 |
* @access public
|
| 135 |
* @see __construct
|
| 136 |
* @internal Uses the mpsum_admin_tab_main action
|
| 137 |
*/
|
| 138 |
public function tab_output() {
|
| 139 |
$options = MPSUM_Updates_Manager::get_options( 'core' );
|
| 140 |
+
$options = wp_parse_args( $options, self::get_defaults() );
|
| 141 |
+
|
| 142 |
if ( isset( $_GET[ 'updated' ] ) ) {
|
| 143 |
$message = __( 'Options saved.', 'stops-core-theme-and-plugin-updates' );
|
| 144 |
?>
|
| 146 |
<div class="updated"><p><strong><?php echo esc_html( $message ); ?></strong></p></div>
|
| 147 |
<?php
|
| 148 |
}
|
| 149 |
+
|
| 150 |
?>
|
| 151 |
<form action="<?php echo esc_url( add_query_arg( array() ) ); ?>" method="post">
|
| 152 |
<h3><?php esc_html_e( 'Global Settings', 'stops-core-theme-and-plugin-updates' ); ?></h3>
|
| 297 |
</form>
|
| 298 |
<?php
|
| 299 |
} //end tab_output_plugins
|
| 300 |
+
}
|
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 and has built-in logging features.
|
| 6 |
Author: Easy Updates Manager Team
|
| 7 |
-
Version: 6.0.
|
| 8 |
Requires at least: 4.4
|
| 9 |
Author URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
| 10 |
Contributors: kidsguide, ronalfy
|
| 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 and has built-in logging features.
|
| 6 |
Author: Easy Updates Manager Team
|
| 7 |
+
Version: 6.0.5
|
| 8 |
Requires at least: 4.4
|
| 9 |
Author URI: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/
|
| 10 |
Contributors: kidsguide, ronalfy
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: kidsguide, ronalfy, roary86, bigwing
|
|
| 3 |
Tags: updates manager, easy updates manager, disable updates manager, disable updates, update control, plugin updates, theme updates, core updates, automatic updates, multisite, logs
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 4.5
|
| 6 |
-
Stable tag: 6.0.
|
| 7 |
License: GPLv2 or later
|
| 8 |
Donate link: https://mediaron.com/contribute/
|
| 9 |
|
|
@@ -86,9 +86,7 @@ Unfortunately, we do not support older versions of WordPress or the non-current
|
|
| 86 |
|
| 87 |
= How do I change the WordPress update notification e-mail? =
|
| 88 |
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
A plugin was also created to change the background updates email address: https://wordpress.org/plugins/background-update-notification-email-address/
|
| 92 |
|
| 93 |
= Automatic Updates =
|
| 94 |
|
|
@@ -105,6 +103,12 @@ For additional information and FAQs for Easy Updates Manager check out our <a hr
|
|
| 105 |
|
| 106 |
== Changelog ==
|
| 107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
= 6.0.3 =
|
| 109 |
Released 2016-05-17
|
| 110 |
|
|
@@ -205,6 +209,9 @@ In version 5.0.0 we completely re-wrote the plugin to offer a faster and more se
|
|
| 205 |
|
| 206 |
== Upgrade Notice ==
|
| 207 |
|
|
|
|
|
|
|
|
|
|
| 208 |
= 6.0.3 =
|
| 209 |
Allow translation logging for automatic updates. Fix PHP warning on plugins page in multisite.
|
| 210 |
|
| 3 |
Tags: updates manager, easy updates manager, disable updates manager, disable updates, update control, plugin updates, theme updates, core updates, automatic updates, multisite, logs
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 4.5
|
| 6 |
+
Stable tag: 6.0.5
|
| 7 |
License: GPLv2 or later
|
| 8 |
Donate link: https://mediaron.com/contribute/
|
| 9 |
|
| 86 |
|
| 87 |
= How do I change the WordPress update notification e-mail? =
|
| 88 |
|
| 89 |
+
At the moment a feature like this is not available in Easy Updates Manager. We recommend that you use https://wordpress.org/plugins/background-update-notification-email-address/
|
|
|
|
|
|
|
| 90 |
|
| 91 |
= Automatic Updates =
|
| 92 |
|
| 103 |
|
| 104 |
== Changelog ==
|
| 105 |
|
| 106 |
+
= 6.0.5 =
|
| 107 |
+
Released 2016-05-20
|
| 108 |
+
|
| 109 |
+
* Added new filter: `mpsum_default_options` to set defaults programmatically
|
| 110 |
+
* Bug fix: CSS styles for dashboard were applied to the list views.
|
| 111 |
+
|
| 112 |
= 6.0.3 =
|
| 113 |
Released 2016-05-17
|
| 114 |
|
| 209 |
|
| 210 |
== Upgrade Notice ==
|
| 211 |
|
| 212 |
+
= 6.0.5 =
|
| 213 |
+
New filter mpsum_default_options. Style fixes for list views.
|
| 214 |
+
|
| 215 |
= 6.0.3 =
|
| 216 |
Allow translation logging for automatic updates. Fix PHP warning on plugins page in multisite.
|
| 217 |
|
