diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/my-sites.php --- a/wp/wp-admin/my-sites.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-admin/my-sites.php Mon Oct 14 18:28:13 2019 +0200 @@ -9,11 +9,13 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( !is_multisite() ) +if ( ! is_multisite() ) { wp_die( __( 'Multisite support is not enabled.' ) ); +} -if ( ! current_user_can('read') ) +if ( ! current_user_can( 'read' ) ) { wp_die( __( 'Sorry, you are not allowed to access this page.' ) ); +} $action = isset( $_POST['action'] ) ? $_POST['action'] : 'splash'; @@ -32,20 +34,22 @@ } } -$title = __( 'My Sites' ); +$title = __( 'My Sites' ); $parent_file = 'index.php'; -get_current_screen()->add_help_tab( array( - 'id' => 'overview', - 'title' => __('Overview'), - 'content' => - '
' . __('This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.') . '
' -) ); +get_current_screen()->add_help_tab( + array( + 'id' => 'overview', + 'title' => __( 'Overview' ), + 'content' => + '' . __( 'This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.' ) . '
', + ) +); get_current_screen()->set_help_sidebar( - '' . __('For more information:') . '
' . - '' . __('Documentation on My Sites') . '
' . - '' . __('Support Forums') . '
' + '' . __( 'For more information:' ) . '
' . + '' . __( 'Documentation on My Sites' ) . '
' . + '' . __( 'Support' ) . '
' ); require_once( ABSPATH . 'wp-admin/admin-header.php' ); @@ -55,9 +59,11 @@