Make WordPress Core

Ticket #54624: 54624.2.diff

File 54624.2.diff, 2.0 KB (added by costdev, 2 years ago)

Alternative: Wrap the notices in a white container and adjust margin for consistency with other screens.

  • src/wp-admin/admin-header.php

    diff --git a/src/wp-admin/admin-header.php b/src/wp-admin/admin-header.php
    index 3306c9125b..61a2df1734 100644
    a b if ( is_network_admin() ) { 
    294294         * @since 3.1.0
    295295         */
    296296        do_action( 'user_admin_notices' );
    297 } else {
     297} elseif ( 'site-health' !== $current_screen->id && 'options-privacy' !== $current_screen->id ) {
    298298        /**
    299299         * Prints admin screen notices.
    300300         *
  • src/wp-admin/css/edit.css

    diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
    index 7fa904ae1a..44dc3c0c11 100644
    a b form#tags-filter { 
    736736        line-height: 1.3;
    737737}
    738738
     739/* Privacy Settings/Health Check admin notices */
     740.privacy-settings-admin-notices,
     741.health-check-admin-notices {
     742        background: #fff;
     743}
     744
     745.privacy-settings-admin-notices .notice,
     746.health-check-admin-notices .notice {
     747        margin-top: 25px;
     748        margin-left: 22px;
     749}
     750
    739751/* Header */
    740752.privacy-settings-header,
    741753.health-check-header {
  • src/wp-admin/options-privacy.php

    diff --git a/src/wp-admin/options-privacy.php b/src/wp-admin/options-privacy.php
    index 008ea30fcf..6fd8492c97 100644
    a b wp_enqueue_script( 'privacy-tools' ); 
    148148require_once ABSPATH . 'wp-admin/admin-header.php';
    149149
    150150?>
     151<div class="privacy-settings-admin-notices">
     152        <?php do_action( 'admin_notices' ); ?>
     153</div>
    151154<div class="privacy-settings-header">
    152155        <div class="privacy-settings-title-section">
    153156                <h1>
  • src/wp-admin/site-health.php

    diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php
    index dfdf2b27c9..ec194c58af 100644
    a b $health_check_site_status->check_wp_version_check_exists(); 
    9595
    9696require_once ABSPATH . 'wp-admin/admin-header.php';
    9797?>
     98<div class="health-check-admin-notices">
     99        <?php do_action( 'admin_notices' ); ?>
     100</div>
    98101<div class="health-check-header">
    99102        <div class="health-check-title-section">
    100103                <h1>