Make WordPress Core


Ignore:
Timestamp:
06/19/2020 04:49:58 PM (5 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r48077 r48092  
    560560function wp_theme_auto_update_setting_template() {
    561561    $template = '
    562         <p class="theme-autoupdate">
     562        <div class="theme-autoupdate">
    563563            <# if ( data.autoupdate ) { #>
    564564                <a href="{{{ data.actions.autoupdate }}}" class="toggle-auto-update" data-slug="{{ data.id }}" data-wp-action="disable">
     
    580580                <br />' . wp_get_auto_update_message() . '</span>
    581581            <# } #>
    582             <span class="auto-updates-error hidden"><p></p></span>
    583         </p>
     582            <div class="notice notice-error notice-alt inline hidden"><p></p></div>
     583        </div>
    584584    ';
    585585
Note: See TracChangeset for help on using the changeset viewer.