WordPress.org

Make WordPress Core

Changeset 18750


Ignore:
Timestamp:
09/22/11 07:17:27 (3 years ago)
Author:
nacin
Message:

Add 'Visit Dashboard' and 'Edit Site' links to the site added message on site-new.php. props vegasgeek, SergeyBiryukov. fixes #18047. fixes #17313.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-new.php

    r18473 r18750  
    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', 'id' => $id ), 'site-new.php' ) ); 
    8686        exit; 
    8787    } else { 
     
    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( absint( $_GET['id'] ) ) ), network_admin_url( 'site-info.php?id=' . absint( $_GET['id'] ) ) ); 
    9696} 
    9797 
Note: See TracChangeset for help on using the changeset viewer.