X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..53f4633144ed68c8b8fb5861f992b5489894a940:/wp-admin/network/index.php diff --git a/wp-admin/network/index.php b/wp-admin/network/index.php index 4cbfb8f4..5c2bfe88 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,38 +17,55 @@ 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( __( 'You do not have permission to access this page.' ), 403 ); $title = __( 'Dashboard' ); $parent_file = 'index.php'; -add_contextual_help($current_screen, - '

' . __('Until WordPress 3.0, running multiple sites required using WordPress MU instead of regular WordPress. In version 3.0, these applications have merged. If you are a former MU user, you should be aware of the following changes:') . '

' . - '' . - '

' . __('This screen provides the network administrator with links to the screens for Sites and Users to either create a new site or user, or to search existing users and sites, as well as Dashboard widgets. Those screens are also accessible through the left-hand navigation in the Network Admin section.') . '

' . +$overview = '

' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '

'; +$overview .= '

' . __( 'From here you can:' ) . '

'; +$overview .= ''; + +get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __( 'Overview' ), + 'content' => $overview +) ); + +$quick_tasks = '

' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '

'; +$quick_tasks .= ''; +$quick_tasks .= '

' . __( 'To search for a user or site, use the search boxes.' ) . '

'; +$quick_tasks .= ''; + +get_current_screen()->add_help_tab( array( + 'id' => 'quick-tasks', + 'title' => __( 'Quick Tasks' ), + 'content' => $quick_tasks +) ); + +get_current_screen()->set_help_sidebar( '

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

' . - '

' . __('Documentation on the Network Admin') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on the Network Admin') . '

' . + '

' . __('Support Forums') . '

' ); wp_dashboard_setup(); wp_enqueue_script( 'dashboard' ); wp_enqueue_script( 'plugin-install' ); -wp_admin_css( 'dashboard' ); -wp_admin_css( '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' ); ?>
- -

+

@@ -59,4 +76,4 @@ require_once( '../admin-header.php' );
- +