Don't echo empty <h3>s if we don't pass a section title to add_settings_section(). see #18045.
git-svn-id: https://develop.svn.wordpress.org/trunk@18432 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3cd6df39aa
commit
bdf534021b
|
@ -1163,6 +1163,7 @@ function do_settings_sections($page) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach ( (array) $wp_settings_sections[$page] as $section ) {
|
foreach ( (array) $wp_settings_sections[$page] as $section ) {
|
||||||
|
if ( $section['title'] )
|
||||||
echo "<h3>{$section['title']}</h3>\n";
|
echo "<h3>{$section['title']}</h3>\n";
|
||||||
call_user_func($section['callback'], $section);
|
call_user_func($section['callback'], $section);
|
||||||
if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) )
|
if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) )
|
||||||
|
|
Loading…
Reference in New Issue