wp/wp-admin/network/index.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
    15 
    15 
    16 if ( !is_multisite() )
    16 if ( !is_multisite() )
    17 	wp_die( __( 'Multisite support is not enabled.' ) );
    17 	wp_die( __( 'Multisite support is not enabled.' ) );
    18 
    18 
    19 if ( ! current_user_can( 'manage_network' ) )
    19 if ( ! current_user_can( 'manage_network' ) )
    20 	wp_die( __( 'You do not have permission to access this page.' ) );
    20 	wp_die( __( 'You do not have permission to access this page.' ), 403 );
    21 
    21 
    22 $title = __( 'Dashboard' );
    22 $title = __( 'Dashboard' );
    23 $parent_file = 'index.php';
    23 $parent_file = 'index.php';
    24 
    24 
    25 $overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
    25 $overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
    48 	'content' => $quick_tasks
    48 	'content' => $quick_tasks
    49 ) );
    49 ) );
    50 
    50 
    51 get_current_screen()->set_help_sidebar(
    51 get_current_screen()->set_help_sidebar(
    52 	'<p><strong>' . __('For more information:') . '</strong></p>' .
    52 	'<p><strong>' . __('For more information:') . '</strong></p>' .
    53 	'<p>' . __('<a href="http://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>') . '</p>' .
    53 	'<p>' . __('<a href="https://codex.wordpress.org/Network_Admin" target="_blank">Documentation on the Network Admin</a>') . '</p>' .
    54 	'<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
    54 	'<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
    55 );
    55 );
    56 
    56 
    57 wp_dashboard_setup();
    57 wp_dashboard_setup();
    58 
    58 
    59 wp_enqueue_script( 'dashboard' );
    59 wp_enqueue_script( 'dashboard' );
    60 wp_enqueue_script( 'plugin-install' );
    60 wp_enqueue_script( 'plugin-install' );
    61 add_thickbox();
    61 add_thickbox();
    62 
    62 
    63 add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );
       
    64 
       
    65 require_once( ABSPATH . 'wp-admin/admin-header.php' );
    63 require_once( ABSPATH . 'wp-admin/admin-header.php' );
    66 
    64 
    67 ?>
    65 ?>
    68 
    66 
    69 <div class="wrap">
    67 <div class="wrap">
    70 <?php screen_icon(); ?>
       
    71 <h2><?php echo esc_html( $title ); ?></h2>
    68 <h2><?php echo esc_html( $title ); ?></h2>
    72 
    69 
    73 <div id="dashboard-widgets-wrap">
    70 <div id="dashboard-widgets-wrap">
    74 
    71 
    75 <?php wp_dashboard(); ?>
    72 <?php wp_dashboard(); ?>