wp/wp-admin/network/index.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 19 3d72ae0968f4
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     6  * @subpackage Multisite
     6  * @subpackage Multisite
     7  * @since 3.0.0
     7  * @since 3.0.0
     8  */
     8  */
     9 
     9 
    10 /** Load WordPress Administration Bootstrap */
    10 /** Load WordPress Administration Bootstrap */
    11 require_once( dirname( __FILE__ ) . '/admin.php' );
    11 require_once __DIR__ . '/admin.php';
    12 
    12 
    13 /** Load WordPress dashboard API */
    13 /** Load WordPress dashboard API */
    14 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
    14 require_once ABSPATH . 'wp-admin/includes/dashboard.php';
    15 
    15 
    16 if ( ! current_user_can( 'manage_network' ) ) {
    16 if ( ! current_user_can( 'manage_network' ) ) {
    17 	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    17 	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    18 }
    18 }
    19 
    19 
    50 	)
    50 	)
    51 );
    51 );
    52 
    52 
    53 get_current_screen()->set_help_sidebar(
    53 get_current_screen()->set_help_sidebar(
    54 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    54 	'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    55 	'<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin">Documentation on the Network Admin</a>' ) . '</p>' .
    55 	'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin/">Documentation on the Network Admin</a>' ) . '</p>' .
    56 	'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>'
    56 	'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>'
    57 );
    57 );
    58 
    58 
    59 wp_dashboard_setup();
    59 wp_dashboard_setup();
    60 
    60 
    61 wp_enqueue_script( 'dashboard' );
    61 wp_enqueue_script( 'dashboard' );
    62 wp_enqueue_script( 'plugin-install' );
    62 wp_enqueue_script( 'plugin-install' );
    63 add_thickbox();
    63 add_thickbox();
    64 
    64 
    65 require_once( ABSPATH . 'wp-admin/admin-header.php' );
    65 require_once ABSPATH . 'wp-admin/admin-header.php';
    66 
    66 
    67 ?>
    67 ?>
    68 
    68 
    69 <div class="wrap">
    69 <div class="wrap">
    70 <h1><?php echo esc_html( $title ); ?></h1>
    70 <h1><?php echo esc_html( $title ); ?></h1>
    78 
    78 
    79 </div><!-- wrap -->
    79 </div><!-- wrap -->
    80 
    80 
    81 <?php
    81 <?php
    82 wp_print_community_events_templates();
    82 wp_print_community_events_templates();
    83 include( ABSPATH . 'wp-admin/admin-footer.php' );
    83 require_once ABSPATH . 'wp-admin/admin-footer.php';