WordPress.org

Make WordPress Core

Ticket #39213: my-sites.diff

File my-sites.diff, 1.2 KB (added by aryamaaru, 22 months ago)

Please review my patch anybody

  • src/wp-admin/my-sites.php

    diff --git a/src/wp-admin/my-sites.php b/src/wp-admin/my-sites.php
    index 2478b39..5e50c2f 100644
    a b if ( 'updateblogsettings' == $action && isset( $_POST['primary_blog'] ) ) { 
    2828                update_user_option( $current_user->ID, 'primary_blog', (int) $_POST['primary_blog'], true );
    2929                $updated = true;
    3030        } else {
    31                 wp_die( __( 'The primary site you chose does not exist.' ) );
     31                wp_die( __( 'The primary site you choose does not exist.' ) );
    3232        }
    3333}
    3434
    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-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<?php
    6969if ( empty( $blogs ) ) :
    70         echo '<p>';
     70        echo '<div class="notice">';
    7171        _e( 'You must be a member of at least one site to use this page.' );
    72         echo '</p>';
     72        echo '</div>';
    7373else :
    7474?>
    7575<form id="myblogs" method="post">