Changeset 18914
- Timestamp:
- 10/07/2011 05:23:33 AM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/screen.php
r18913 r18914 267 267 * 268 268 * @param string $option An option name. 269 * @param mixed $args Option dependent arguments269 * @param mixed $args Option-dependent arguments. 270 270 * @return void 271 271 */ … … 577 577 * 578 578 * @param string $option Option ID 579 * @param array $args Associative array of arguments particular to the given $option.579 * @param mixed $args Option-dependent arguments. 580 580 */ 581 581 public function add_option( $option, $args = array() ) { … … 659 659 'callback' => array( $this, 'render_screen_options' ), 660 660 ) ); 661 $_options_tab = array_pop( $this->_help_tabs ); 662 array_unshift( $this->_help_tabs, $_options_tab ); 661 663 } 662 664 … … 758 760 ?> 759 761 <form id="adv-settings" action="" method="post"> 760 <?php if ( isset( $wp_meta_boxes[ $this->id ] ) ) : ?> 762 <?php 763 if ( isset( $this->_options['overview'] ) ) 764 echo $this->_options['overview']; 765 if ( isset( $wp_meta_boxes[ $this->id ] ) ) : ?> 761 766 <h5><?php _ex('Show on screen', 'Metaboxes') ?></h5> 762 767 <div class="metabox-prefs"> -
trunk/wp-admin/index.php
r18911 r18914 29 29 30 30 31 add_screen_option( 'overview', '<p>' . __( '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.' ) . '</p>' ); 32 31 33 // Help tabs 32 33 $help_overview = '<p>' . __('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.') . '</p>';34 35 $current_screen->add_help_tab( array(36 'title' => __('Overview'),37 'content' => $help_overview,38 ) );39 34 40 35 $help_navigation = '<p>' . __('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.') . '</p>';
Note: See TracChangeset
for help on using the changeset viewer.