diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 59496de8b2..fb3b9496cd 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -266,7 +266,7 @@ function add_contextual_help($screen, $help) { * @since 3.1.0 * * @param string $option An option name. - * @param mixed $args Option dependent arguments + * @param mixed $args Option-dependent arguments. * @return void */ function add_screen_option( $option, $args = array() ) { @@ -576,7 +576,7 @@ final class WP_Screen { * @since 3.3.0 * * @param string $option Option ID - * @param array $args Associative array of arguments particular to the given $option. + * @param mixed $args Option-dependent arguments. */ public function add_option( $option, $args = array() ) { $this->_options[ $option ] = $args; @@ -658,6 +658,8 @@ final class WP_Screen { 'title' => __('Screen Options'), 'callback' => array( $this, 'render_screen_options' ), ) ); + $_options_tab = array_pop( $this->_help_tabs ); + array_unshift( $this->_help_tabs, $_options_tab ); } // Time to render! @@ -757,7 +759,10 @@ final class WP_Screen { ?>
- id ] ) ) : ?> + _options['overview'] ) ) + echo $this->_options['overview']; + if ( isset( $wp_meta_boxes[ $this->id ] ) ) : ?>
diff --git a/wp-admin/index.php b/wp-admin/index.php index 380348f641..090ebb7787 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -28,15 +28,10 @@ else add_screen_option('layout_columns', array('max' => 4, 'default' => 2) ); +add_screen_option( 'overview', '

' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the top bar.' ) . '

' ); + // Help tabs -$help_overview = '

' . __('Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the top bar.') . '

'; - -$current_screen->add_help_tab( array( - 'title' => __('Overview'), - 'content' => $help_overview, -) ); - $help_navigation = '

' . __('The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.') . '

'; $help_navigation .= '

' . __('Links in the “admin bar” at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '

';