WordPress.org

Make WordPress Core

Ticket #17313: 17313.patch

File 17313.patch, 1.2 KB (added by SergeyBiryukov, 7 years ago)
  • wp-admin/network/site-new.php

     
    8282                $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) );
    8383                wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );
    8484                wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
    85                 wp_redirect( add_query_arg( array('update' => 'added'), 'site-new.php' ) );
     85                wp_redirect( add_query_arg( array( 'update' => 'added', 'site_id' => $id ), 'site-new.php' ) );
    8686                exit;
    8787        } else {
    8888                wp_die( $id->get_error_message() );
     
    9292if ( isset($_GET['update']) ) {
    9393        $messages = array();
    9494        if ( 'added' == $_GET['update'] )
    95                 $messages[] = __('Site added.');
     95                $messages[] = __('Site added.') . ' <a href="' . esc_url( get_admin_url( $_GET['site_id'] ) ) . '">' . __( 'Visit Dashboard' ) . '</a>';
    9696}
    9797
    9898$title = __('Add New Site');