Edit File by line
/home/barbar84/www/wp-admin/network
File: index.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Multisite administration panel.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Multisite
[5] Fix | Delete
* @since 3.0.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/** Load WordPress Administration Bootstrap */
[9] Fix | Delete
require_once __DIR__ . '/admin.php';
[10] Fix | Delete
[11] Fix | Delete
/** Load WordPress dashboard API */
[12] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
[13] Fix | Delete
[14] Fix | Delete
if ( ! current_user_can( 'manage_network' ) ) {
[15] Fix | Delete
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
$title = __( 'Dashboard' );
[19] Fix | Delete
$parent_file = 'index.php';
[20] Fix | Delete
[21] Fix | Delete
$overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
[22] Fix | Delete
$overview .= '<p>' . __( 'From here you can:' ) . '</p>';
[23] Fix | Delete
$overview .= '<ul><li>' . __( 'Add and manage sites or users' ) . '</li>';
[24] Fix | Delete
$overview .= '<li>' . __( 'Install and activate themes or plugins' ) . '</li>';
[25] Fix | Delete
$overview .= '<li>' . __( 'Update your network' ) . '</li>';
[26] Fix | Delete
$overview .= '<li>' . __( 'Modify global network settings' ) . '</li></ul>';
[27] Fix | Delete
[28] Fix | Delete
get_current_screen()->add_help_tab(
[29] Fix | Delete
array(
[30] Fix | Delete
'id' => 'overview',
[31] Fix | Delete
'title' => __( 'Overview' ),
[32] Fix | Delete
'content' => $overview,
[33] Fix | Delete
)
[34] Fix | Delete
);
[35] Fix | Delete
[36] Fix | Delete
$quick_tasks = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>';
[37] Fix | Delete
$quick_tasks .= '<ul><li>' . __( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>';
[38] Fix | Delete
$quick_tasks .= '<li>' . __( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>';
[39] Fix | Delete
$quick_tasks .= '<p>' . __( 'To search for a user or site, use the search boxes.' ) . '</p>';
[40] Fix | Delete
$quick_tasks .= '<ul><li>' . __( 'To search for a user, <strong>enter an email address or username</strong>. Use a wildcard to search for a partial username, such as user&#42;.' ) . '</li>';
[41] Fix | Delete
$quick_tasks .= '<li>' . __( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>';
[42] Fix | Delete
[43] Fix | Delete
get_current_screen()->add_help_tab(
[44] Fix | Delete
array(
[45] Fix | Delete
'id' => 'quick-tasks',
[46] Fix | Delete
'title' => __( 'Quick Tasks' ),
[47] Fix | Delete
'content' => $quick_tasks,
[48] Fix | Delete
)
[49] Fix | Delete
);
[50] Fix | Delete
[51] Fix | Delete
get_current_screen()->set_help_sidebar(
[52] Fix | Delete
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
[53] Fix | Delete
'<p>' . __( '<a href="https://wordpress.org/support/article/network-admin/">Documentation on the Network Admin</a>' ) . '</p>' .
[54] Fix | Delete
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>'
[55] Fix | Delete
);
[56] Fix | Delete
[57] Fix | Delete
wp_dashboard_setup();
[58] Fix | Delete
[59] Fix | Delete
wp_enqueue_script( 'dashboard' );
[60] Fix | Delete
wp_enqueue_script( 'plugin-install' );
[61] Fix | Delete
add_thickbox();
[62] Fix | Delete
[63] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-header.php';
[64] Fix | Delete
[65] Fix | Delete
?>
[66] Fix | Delete
[67] Fix | Delete
<div class="wrap">
[68] Fix | Delete
<h1><?php echo esc_html( $title ); ?></h1>
[69] Fix | Delete
[70] Fix | Delete
<div id="dashboard-widgets-wrap">
[71] Fix | Delete
[72] Fix | Delete
<?php wp_dashboard(); ?>
[73] Fix | Delete
[74] Fix | Delete
<div class="clear"></div>
[75] Fix | Delete
</div><!-- dashboard-widgets-wrap -->
[76] Fix | Delete
[77] Fix | Delete
</div><!-- wrap -->
[78] Fix | Delete
[79] Fix | Delete
<?php
[80] Fix | Delete
wp_print_community_events_templates();
[81] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-footer.php';
[82] Fix | Delete
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function