mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Plugins and Themes Auto-Updates:
- Fix displaying of errors on the Themes screen. - Correct the classes used for the error messages, and use `notice-alt` as notices are mostly shown on a white background. Props afercia, azaozz. Fixes #50405. git-svn-id: https://develop.svn.wordpress.org/trunk@48092 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -775,7 +775,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
*/
|
||||
echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );
|
||||
|
||||
echo '<div class="auto-updates-error inline notice error hidden"><p></p></div>';
|
||||
echo '<div class="notice notice-error notice-alt inline hidden"><p></p></div>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1096,7 +1096,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
*/
|
||||
echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );
|
||||
|
||||
echo '<div class="inline notice error hidden"><p></p></div>';
|
||||
echo '<div class="notice notice-error notice-alt inline hidden"><p></p></div>';
|
||||
echo '</td>';
|
||||
|
||||
break;
|
||||
|
||||
@@ -559,7 +559,7 @@ if ( ! is_multisite() && $broken_themes ) {
|
||||
*/
|
||||
function wp_theme_auto_update_setting_template() {
|
||||
$template = '
|
||||
<p class="theme-autoupdate">
|
||||
<div class="theme-autoupdate">
|
||||
<# if ( data.autoupdate ) { #>
|
||||
<a href="{{{ data.actions.autoupdate }}}" class="toggle-auto-update" data-slug="{{ data.id }}" data-wp-action="disable">
|
||||
<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>
|
||||
@@ -579,8 +579,8 @@ function wp_theme_auto_update_setting_template() {
|
||||
<# } #>
|
||||
<br />' . wp_get_auto_update_message() . '</span>
|
||||
<# } #>
|
||||
<span class="auto-updates-error hidden"><p></p></span>
|
||||
</p>
|
||||
<div class="notice notice-error notice-alt inline hidden"><p></p></div>
|
||||
</div>
|
||||
';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user