Make WordPress Core

Changeset 18432


Ignore:
Timestamp:
07/11/2011 08:22:24 PM (14 years ago)
Author:
nacin
Message:

Don't echo empty <h3>s if we don't pass a section title to add_settings_section(). see #18045.

File:
1 edited

Legend:

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

    r18320 r18432  
    11641164
    11651165    foreach ( (array) $wp_settings_sections[$page] as $section ) {
    1166         echo "<h3>{$section['title']}</h3>\n";
     1166        if ( $section['title'] )
     1167            echo "<h3>{$section['title']}</h3>\n";
    11671168        call_user_func($section['callback'], $section);
    11681169        if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) )
Note: See TracChangeset for help on using the changeset viewer.