Make WordPress Core

Changeset 48316


Ignore:
Timestamp:
07/05/2020 11:55:14 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Administration: Bring the update nag in line with other admin notices.

In addition to more consistent display, this gives it a visible border on the About page.

Props desrosj, nikhilbhansi, afercia, SergeyBiryukov.
Fixes #50372.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r48293 r48316  
    15671567    padding: 11px 15px;
    15681568    font-size: 14px;
    1569     text-align: left;
    15701569    margin: 25px 20px 0 2px;
    1571     background-color: #fff;
    1572     border-left: 4px solid #ffba00;
    1573     box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    15741570}
    15751571
  • trunk/src/wp-admin/includes/ms.php

    r48313 r48316  
    704704
    705705    if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) {
    706         echo "<div class='update-nag'>" . sprintf(
     706        echo "<div class='update-nag notice notice-warning inline'>" . sprintf(
    707707            /* translators: %s: URL to Upgrade Network screen. */
    708708            __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ),
  • trunk/src/wp-admin/includes/update.php

    r48202 r48316  
    319319        );
    320320    }
    321     echo "<div class='update-nag'>$msg</div>";
     321
     322    echo "<div class='update-nag notice notice-warning inline'>$msg</div>";
    322323}
    323324
     
    765766    }
    766767
    767     echo "<div class='update-nag'>$msg</div>";
     768    echo "<div class='update-nag notice notice-warning inline'>$msg</div>";
    768769}
    769770
Note: See TracChangeset for help on using the changeset viewer.