X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..85ad385665744d9cc3bcd939906309be7268edb3:/wp-admin/my-sites.php diff --git a/wp-admin/my-sites.php b/wp-admin/my-sites.php index 873b03cf..f882964a 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,7 +39,7 @@ 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).') . '

' ) ); @@ -49,14 +49,13 @@ get_current_screen()->set_help_sidebar( '

' . __('Support Forums') . '

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

-


"; $i++; @@ -117,5 +142,4 @@ else : +include( ABSPATH . 'wp-admin/admin-footer.php' );

' . __( 'Global Settings' ) . '

'; @@ -102,7 +118,16 @@ else : $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; 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 "