Make WordPress Core

Changeset 18861


Ignore:
Timestamp:
10/01/2011 09:18:04 PM (15 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/screen.php

    r18859 r18861  
    599599                $defaults = array(
    600600                        'title'    => false,
     601                        'section'  => false,
    601602                        'id'       => false,
    602603                        'content'  => '',
     
    692693
    693694                                                <div id="<?php echo esc_attr( $panel_id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
    694                                                         <h3><?php echo esc_html( $tab['title'] ); ?></h3>
    695695                                                        <?php
     696                                                        if ( $tab['section'] )
     697                                                                echo '<h3>' . esc_html( $tab['section'] ) . '</h3>';
     698
    696699                                                        // Print tab content.
    697700                                                        echo $tab['content'];
Note: See TracChangeset for help on using the changeset viewer.