Accessibility: Bump the Settings API sections heading one level up.
Also, fix a typo in the `do_settings_sections()` DocBlock. Props neoxx. Fixes #34492. git-svn-id: https://develop.svn.wordpress.org/trunk@35459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fff36156c2
commit
2b54d3143b
@ -1248,7 +1248,7 @@ function add_settings_field($id, $title, $callback, $page, $section = 'default',
|
|||||||
* @global $wp_settings_fields Storage array of settings fields and info about their pages/sections
|
* @global $wp_settings_fields Storage array of settings fields and info about their pages/sections
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @param string $page The slug name of the page whos settings sections you want to output
|
* @param string $page The slug name of the page whose settings sections you want to output
|
||||||
*/
|
*/
|
||||||
function do_settings_sections( $page ) {
|
function do_settings_sections( $page ) {
|
||||||
global $wp_settings_sections, $wp_settings_fields;
|
global $wp_settings_sections, $wp_settings_fields;
|
||||||
@ -1258,7 +1258,7 @@ function do_settings_sections( $page ) {
|
|||||||
|
|
||||||
foreach ( (array) $wp_settings_sections[$page] as $section ) {
|
foreach ( (array) $wp_settings_sections[$page] as $section ) {
|
||||||
if ( $section['title'] )
|
if ( $section['title'] )
|
||||||
echo "<h3>{$section['title']}</h3>\n";
|
echo "<h2>{$section['title']}</h2>\n";
|
||||||
|
|
||||||
if ( $section['callback'] )
|
if ( $section['callback'] )
|
||||||
call_user_func( $section['callback'], $section );
|
call_user_func( $section['callback'], $section );
|
||||||
|
Loading…
Reference in New Issue
Block a user