Ticket #18047: 18047.patch
| File 18047.patch, 1.2 KB (added by , 14 years ago) |
|---|
-
site-new.php
82 82 $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) ); 83 83 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' ) . '>' ); 84 84 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' ) ); 86 86 exit; 87 87 } else { 88 88 wp_die( $id->get_error_message() ); … … 92 92 if ( isset($_GET['update']) ) { 93 93 $messages = array(); 94 94 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> or <a href="site-info.php?id=' . $_GET['site_id'] . '">' . __( 'Edit Site' ) . '</a>'; 96 96 } 97 97 98 98 $title = __('Add New Site');