mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Separate the tab title from the help section title, see #18690
git-svn-id: https://develop.svn.wordpress.org/trunk@18861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4f289db37a
commit
f928bc51eb
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user