WordPress.org

Make WordPress Core

Ticket #39213: 39213.diff

File 39213.diff, 1.2 KB (added by marksabbath, 3 years ago)
  • wp-admin/my-sites.php

    diff --git wp-admin/my-sites.php wp-admin/my-sites.php
    index 31c5bce..736f145 100644
     
    99
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 if ( !is_multisite() )
     12if ( ! is_multisite() )
    1313        wp_die( __( 'Multisite support is not enabled.' ) );
    1414
    1515if ( ! current_user_can('read') )
    get_current_screen()->set_help_sidebar( 
    5151require_once( ABSPATH . 'wp-admin/admin-header.php' );
    5252
    5353if ( $updated ) { ?>
    54         <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
     54        <div id="message" class="notice notice-success is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
    5555<?php } ?>
    5656
    5757<div class="wrap">
    if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) { 
    6767}
    6868
    6969if ( empty( $blogs ) ) :
    70         echo '<p>';
    71         _e( 'You must be a member of at least one site to use this page.' );
    72         echo '</p>';
     70        ?>
     71        <div id="message" class="notice notice-error>"><p><strong><?php _e( 'You must be a member of at least one site to use this page.' ); ?></p></strong></div>
     72        <?php
    7373else :
    7474?>
    7575