Accessibility: Bump the Settings API sections heading one level up.
Also, fix a typo in the `do_settings_sections()` DocBlock. Props neoxx. Fixes #34492. Built from https://develop.svn.wordpress.org/trunk@35459 git-svn-id: http://core.svn.wordpress.org/trunk@35423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9876e2cccf
commit
f1faed4024
@ -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
|
||||
* @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 ) {
|
||||
global $wp_settings_sections, $wp_settings_fields;
|
||||
@ -1258,7 +1258,7 @@ function do_settings_sections( $page ) {
|
||||
|
||||
foreach ( (array) $wp_settings_sections[$page] as $section ) {
|
||||
if ( $section['title'] )
|
||||
echo "<h3>{$section['title']}</h3>\n";
|
||||
echo "<h2>{$section['title']}</h2>\n";
|
||||
|
||||
if ( $section['callback'] )
|
||||
call_user_func( $section['callback'], $section );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta2-35458';
|
||||
$wp_version = '4.4-beta2-35459';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user