Make WordPress Core

Changeset 33820


Ignore:
Timestamp:
08/31/2015 03:50:05 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Bump H3 headings to H2 on Themes screen for better accessibility.

props joehills.
fixes #33560.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

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

    r33492 r33820  
    534534                        <span class="current-label"><?php _e( 'Current Theme' ); ?></span>
    535535                    <# } #>
    536                     <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h3>
    537                     <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h4>
     536                    <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h2>
     537                    <h3 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h3>
    538538                    <p class="theme-description">{{{ data.description }}}</p>
    539539
  • trunk/src/wp-admin/js/theme.js

    r33650 r33820  
    984984        // 'Add new theme' element shown at the end of the grid
    985985        if ( themes.data.settings.canInstall ) {
    986             this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + l10n.addNew + '</h3></a></div>' );
     986            this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">' + l10n.addNew + '</h2></a></div>' );
    987987        }
    988988
  • trunk/src/wp-admin/themes.php

    r33492 r33820  
    226226
    227227    <?php if ( $theme['active'] ) { ?>
    228         <h3 class="theme-name" id="<?php echo $aria_name; ?>">
     228        <h2 class="theme-name" id="<?php echo $aria_name; ?>">
    229229            <?php
    230230            /* translators: %s: theme name */
    231231            printf( __( '<span>Active:</span> %s' ), $theme['name'] );
    232232            ?>
    233         </h3>
     233        </h2>
    234234    <?php } else { ?>
    235         <h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3>
     235        <h2 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h2>
    236236    <?php } ?>
    237237
     
    328328
    329329    <# if ( data.active ) { #>
    330         <h3 class="theme-name" id="{{ data.id }}-name">
     330        <h2 class="theme-name" id="{{ data.id }}-name">
    331331            <?php
    332332            /* translators: %s: theme name */
    333333            printf( __( '<span>Active:</span> %s' ), '{{{ data.name }}}' );
    334334            ?>
    335         </h3>
     335        </h2>
    336336    <# } else { #>
    337         <h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3>
     337        <h2 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h2>
    338338    <# } #>
    339339
     
    377377                    <span class="current-label"><?php _e( 'Current Theme' ); ?></span>
    378378                <# } #>
    379                 <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h3>
    380                 <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h4>
     379                <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h2>
     380                <h3 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h3>
    381381
    382382                <# if ( data.hasUpdate ) { #>
Note: See TracChangeset for help on using the changeset viewer.