X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..fc24d733700d6d2bd886ffa9188df5c78069b018:/wp-admin/my-sites.php diff --git a/wp-admin/my-sites.php b/wp-admin/my-sites.php index 873b03cf..feed16ae 100644 --- a/wp-admin/my-sites.php +++ b/wp-admin/my-sites.php @@ -7,7 +7,7 @@ * @since 3.0.0 */ -require_once( './admin.php' ); +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( !is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); @@ -39,24 +39,23 @@ 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. He or she can use the links under each site to visit either the frontend or the dashboard for that site.') . '

' . + '

' . __('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 frontend or the dashboard for that site.') . '

' . '

' . __('Up until WordPress version 3.0, what is now called a Multisite Network had to be installed separately as WordPress MU (multi-user).') . '

' ) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __('Documentation on My Sites') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Support Forums') . '

' ); -require_once( './admin-header.php' ); +require_once( ABSPATH . 'wp-admin/admin-header.php' ); if ( $updated ) { ?>

-


'; } @@ -100,9 +116,18 @@ else : $i = 0; foreach ( $row as $user_blog ) { $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; - echo ""; $i++; @@ -117,5 +142,4 @@ else : +include( ABSPATH . 'wp-admin/admin-footer.php' );

' . __( 'Global Settings' ) . '

'; + echo '

' . __( 'Global Settings' ) . '

'; echo $settings_html; echo '
"; + echo ""; echo "

{$user_blog->blogname}

"; + /** + * Filter the row links displayed for each site on the My Sites screen. + * + * @since MU + * + * @param string $string The HTML site link markup. + * @param object $user_blog An object containing the site data. + */ echo "

" . apply_filters( 'myblogs_blog_actions', "" . __( 'Visit' ) . " | " . __( 'Dashboard' ) . "", $user_blog ) . "

"; + /** This filter is documented in wp-admin/my-sites.php */ echo apply_filters( 'myblogs_options', '', $user_blog ); echo "