Make WordPress Core

Ticket #54624: 54624.diff

File 54624.diff, 2.4 KB (added by costdev, 2 years ago)
  • src/wp-admin/css/edit.css

    diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
    index 7fa904ae1a..76a2aade70 100644
    a b form#tags-filter { 
    754754        padding-top: 8px;
    755755}
    756756
     757.privacy-settings .update-nag,
     758.site-health .update-nag {
     759        display: block;
     760}
     761
     762.privacy-settings .update-nag {
     763        margin: 5px 15px 20px;
     764}
     765
    757766.privacy-settings-tabs-wrapper {
    758767        /* IE 11 */
    759768        display: -ms-inline-grid;
  • src/wp-admin/includes/ms.php

    diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php
    index af5bd1abd4..6d83a8c20d 100644
    a b function site_admin_notice() { 
    708708                return;
    709709        }
    710710
     711        $inline = ' inline';
     712        $screen = get_current_screen();
     713
     714        if ( $screen && in_array( $screen->id, array( 'site-health', 'options-privacy' ), true ) ) {
     715                $inline = '';
     716        }
     717
    711718        if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $wp_db_version ) {
    712                 echo "<div class='update-nag notice notice-warning inline'>" . sprintf(
     719                echo "<div class='update-nag notice notice-warning$inline'>" . sprintf(
    713720                        /* translators: %s: URL to Upgrade Network screen. */
    714721                        __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ),
    715722                        esc_url( network_admin_url( 'upgrade.php' ) )
  • src/wp-admin/includes/update.php

    diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
    index 8661af75b5..2281d03dfb 100644
    a b function update_nag() { 
    325325                );
    326326        }
    327327
    328         echo "<div class='update-nag notice notice-warning inline'>$msg</div>";
     328        $inline = ' inline';
     329        $screen = get_current_screen();
     330
     331        if ( $screen && in_array( $screen->id, array( 'site-health', 'options-privacy' ), true ) ) {
     332                $inline = '';
     333        }
     334
     335        echo "<div class='update-nag notice notice-warning$inline'>$msg</div>";
    329336}
    330337
    331338/**
    function maintenance_nag() { 
    857864                $msg = __( 'An automated WordPress update has failed to complete! Please notify the site administrator.' );
    858865        }
    859866
    860         echo "<div class='update-nag notice notice-warning inline'>$msg</div>";
     867        $inline = ' inline';
     868        $screen = get_current_screen();
     869
     870        if ( $screen && in_array( $screen->id, array( 'site-health', 'options-privacy' ), true ) ) {
     871                $inline = '';
     872        }
     873
     874        echo "<div class='update-nag notice notice-warning$inline'>$msg</div>";
    861875}
    862876
    863877/**