From 2b54d3143b97bdec6f2249c54cf03f0cbafaa19d Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 30 Oct 2015 15:29:31 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/template-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/template-functions.php b/src/wp-admin/includes/template-functions.php index b65c4b1c4e..519ab9bbbc 100644 --- a/src/wp-admin/includes/template-functions.php +++ b/src/wp-admin/includes/template-functions.php @@ -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 "

{$section['title']}

\n"; + echo "

{$section['title']}

\n"; if ( $section['callback'] ) call_user_func( $section['callback'], $section );