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 @@
-

+

+?> + '; else : -?> + ?>
@@ -110,10 +116,10 @@ foreach ( $blogs as $user_blog ) { switch_to_blog( $user_blog->userblog_id ); - echo "
  • "; + echo '
  • '; echo "

    {$user_blog->blogname}

    "; - $actions = "" . __( 'Visit' ) . ''; + $actions = "" . __( 'Visit' ) . ''; if ( current_user_can( 'read' ) ) { $actions .= " | " . __( 'Dashboard' ) . ''; @@ -132,14 +138,17 @@ /** This filter is documented in wp-admin/my-sites.php */ echo apply_filters( 'myblogs_options', '', $user_blog ); - echo "
  • "; + echo ''; restore_current_blog(); - }?> + } + ?> 1 || has_action( 'myblogs_allblogs_options' ) || has_filter( 'myblogs_options' ) ) { - ?> + +