X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..3d39054f012aefe514b3f5509e32f09fc4feda44:/wp-admin/network/index.php diff --git a/wp-admin/network/index.php b/wp-admin/network/index.php index 96c2c248..796191f0 100644 --- a/wp-admin/network/index.php +++ b/wp-admin/network/index.php @@ -8,7 +8,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once( './admin.php' ); +require_once( dirname( __FILE__ ) . '/admin.php' ); /** Load WordPress dashboard API */ require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); @@ -17,7 +17,7 @@ if ( !is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); if ( ! current_user_can( 'manage_network' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); + wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); $title = __( 'Dashboard' ); $parent_file = 'index.php'; @@ -36,11 +36,11 @@ get_current_screen()->add_help_tab( array( ) ); $quick_tasks = '
' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '
'; -$quick_tasks .= '' . __( 'To search for a user or site, use the search boxes.' ) . '
'; -$quick_tasks .= '' . __('For more information:') . '
' . - '' . __('Documentation on the Network Admin') . '
' . - '' . __('Support Forums') . '
' + '' . __('Documentation on the Network Admin') . '
' . + '' . __('Support Forums') . '
' ); wp_dashboard_setup(); @@ -60,15 +60,12 @@ wp_enqueue_script( 'dashboard' ); wp_enqueue_script( 'plugin-install' ); add_thickbox(); -add_screen_option('layout_columns', array('max' => 4, 'default' => 2) ); - -require_once( '../admin-header.php' ); +require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>