WordPress.org

Make WordPress Core

Changeset 35459


Ignore:
Timestamp:
10/30/2015 03:29:31 PM (4 years ago)
Author:
afercia
Message:

Accessibility: Bump the Settings API sections heading one level up.

Also, fix a typo in the do_settings_sections() DocBlock.

Props neoxx.
Fixes #34492.

File:
1 edited

Legend:

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

    r35326 r35459  
    12491249 * @since 2.7.0
    12501250 *
    1251  * @param string $page The slug name of the page whos settings sections you want to output
     1251 * @param string $page The slug name of the page whose settings sections you want to output
    12521252 */
    12531253function do_settings_sections( $page ) {
     
    12591259    foreach ( (array) $wp_settings_sections[$page] as $section ) {
    12601260        if ( $section['title'] )
    1261             echo "<h3>{$section['title']}</h3>\n";
     1261            echo "<h2>{$section['title']}</h2>\n";
    12621262
    12631263        if ( $section['callback'] )
Note: See TracChangeset for help on using the changeset viewer.