X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..38ac4bc40322ecdc4052db4263466573e01fa51f:/wp-admin/my-sites.php diff --git a/wp-admin/my-sites.php b/wp-admin/my-sites.php index 2ef4ca77..269b0811 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') . '

' + '

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

' . + '

' . __('Support Forums') . '

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

+

-

'; else : ?> -
+
- +
'; } @@ -93,16 +109,23 @@ else : $split = $split + $cols; } - $c = ''; foreach ( $rows as $row ) { - $c = $c == 'alternate' ? '' : 'alternate'; - echo ""; + echo ""; $i = 0; foreach ( $row as $user_blog ) { $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; - echo ""; $i++; @@ -117,4 +140,4 @@ else :

' . __( '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 "