X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..refs/tags/wordpress-4.0:/wp-admin/network/sites.php?ds=sidebyside diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 93341c35..4dddfcfd 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -8,7 +8,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once( './admin.php' ); +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); @@ -43,13 +43,14 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __('Documentation on Site Management') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Support Forums') . '

' ); $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; if ( isset( $_GET['action'] ) ) { - do_action( 'wpmuadminedit' , '' ); + /** This action is documented in wp-admin/network/edit.php */ + do_action( 'wpmuadminedit' ); if ( 'confirm' === $_GET['action'] ) { check_admin_referer( 'confirm' ); @@ -58,33 +59,26 @@ if ( isset( $_GET['action'] ) ) { nocache_headers(); header( 'Content-Type: text/html; charset=utf-8' ); } - if ( $current_site->blog_id == $id ) + + if ( $current_site->blog_id == $id ) { wp_die( __( 'You are not allowed to change the current site.' ) ); + } + + require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> - - > - - <?php _e( 'WordPress › Confirm your action' ); ?> - - - - - -

+
+

- +
- - +
prepare_items(); -require_once( '../admin-header.php' ); +require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

@@ -254,4 +272,4 @@ require_once( '../admin-header.php' );

+require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>