Separate the tab title from the help section title, see #18690

git-svn-id: http://svn.automattic.com/wordpress/trunk@18861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-10-01 21:18:04 +00:00
parent 9e37d9490d
commit 0df31fc3c4
1 changed files with 5 additions and 2 deletions

View File

@ -598,6 +598,7 @@ final class WP_Screen {
public function add_help_tab( $args ) {
$defaults = array(
'title' => false,
'section' => false,
'id' => false,
'content' => '',
'callback' => false,
@ -691,8 +692,10 @@ final class WP_Screen {
?>
<div id="<?php echo esc_attr( $panel_id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
<h3><?php echo esc_html( $tab['title'] ); ?></h3>
<?php
if ( $tab['section'] )
echo '<h3>' . esc_html( $tab['section'] ) . '</h3>';
// Print tab content.
echo $tab['content'];
@ -893,4 +896,4 @@ final class WP_Screen {
</div>
<?php
}
}
}