WordPress.org

Make WordPress Core

Ticket #18047: 18047.2.patch

File 18047.2.patch, 1.3 KB (added by SergeyBiryukov, 3 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[] = sprintf( __( 'Site added. <a href="%1$s">Visit Dashboard</a> or <a href="%2$s">Edit Site</a>' ), esc_url( get_admin_url( $_GET['site_id'] ) ), 'site-info.php?id=' . absint( $_GET['site_id'] ) ); 
    9696} 
    9797 
    9898$title = __('Add New Site');