mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
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:
parent
9e37d9490d
commit
0df31fc3c4
@ -598,6 +598,7 @@ final class WP_Screen {
|
|||||||
public function add_help_tab( $args ) {
|
public function add_help_tab( $args ) {
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
'title' => false,
|
'title' => false,
|
||||||
|
'section' => false,
|
||||||
'id' => false,
|
'id' => false,
|
||||||
'content' => '',
|
'content' => '',
|
||||||
'callback' => false,
|
'callback' => false,
|
||||||
@ -691,8 +692,10 @@ final class WP_Screen {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="<?php echo esc_attr( $panel_id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
|
<div id="<?php echo esc_attr( $panel_id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
|
||||||
<h3><?php echo esc_html( $tab['title'] ); ?></h3>
|
|
||||||
<?php
|
<?php
|
||||||
|
if ( $tab['section'] )
|
||||||
|
echo '<h3>' . esc_html( $tab['section'] ) . '</h3>';
|
||||||
|
|
||||||
// Print tab content.
|
// Print tab content.
|
||||||
echo $tab['content'];
|
echo $tab['content'];
|
||||||
|
|
||||||
@ -893,4 +896,4 @@ final class WP_Screen {
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user