Make WordPress Core


Ignore:
Timestamp:
02/23/2023 10:11:51 PM (2 years ago)
Author:
joedolson
Message:

Networks and Sites: Use consistent markup for admin notices.

Fix admin notices in network screens so they use consistent markup and style.

Props afercia, marksabbath, stevenkword, jeremyfelt, aryamaaru, robinwpdeveloper, obayedmamur, joedolson.
Fixes #39213.

File:
1 edited

Legend:

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

    r55412 r55418  
    5757
    5858if ( $updated ) { ?>
    59     <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
     59    <div id="message" class="notice notice-success is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
    6060<?php } ?>
    6161
     
    7575
    7676if ( empty( $blogs ) ) :
    77     echo '<p>';
    78     _e( 'You must be a member of at least one site to use this page.' );
    79     echo '</p>';
     77    ?>
     78    <div class="notice notice-error is-dismissible"><p><strong><?php _e( 'You must be a member of at least one site to use this page.' ); ?></strong></p></div>
     79    <?php
    8080else :
    8181    ?>
Note: See TracChangeset for help on using the changeset viewer.