Make WordPress Core

Changeset 34066


Ignore:
Timestamp:
09/11/2015 11:59:30 PM (9 years ago)
Author:
afercia
Message:

Bump H3 headings to H2 on the Theme Editor screen for better accessibility.

Props mrahmadawais.
Fixes #33660.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r34011 r34066  
    27742774
    27752775/* Theme/Plugin Editor */
    2776 .alignleft h3 {
     2776.alignleft h2 {
    27772777    margin: 0;
    27782778}
     
    28022802}
    28032803
    2804 #templateside h3,
     2804#templateside h2,
    28052805#postcustomstuff p.submit {
    28062806    margin: 0;
  • trunk/src/wp-admin/theme-editor.php

    r32974 r34066  
    136136<div class="fileedit-sub">
    137137<div class="alignleft">
    138 <h3><?php echo $theme->display('Name'); if ( $description ) echo ': ' . $description; ?></h3>
     138<h2><?php echo $theme->display( 'Name' ); if ( $description ) echo ': ' . $description; ?></h2>
    139139</div>
    140140<div class="alignright">
     
    166166    if ( $has_templates || $theme->parent() ) :
    167167?>
    168     <h3><?php _e('Templates'); ?></h3>
     168    <h2><?php _e( 'Templates' ); ?></h2>
    169169    <?php if ( $theme->parent() ) : ?>
    170170    <p class="howto"><?php printf( __( 'This child theme inherits templates from a parent theme, %s.' ), '<a href="' . self_admin_url('theme-editor.php?theme=' . urlencode( $theme->get_template() ) ) . '">' . $theme->parent()->display('Name') . '</a>' ); ?></p>
     
    176176    foreach ( $allowed_files as $filename => $absolute_filename ) :
    177177        if ( 'style.css' == $filename )
    178             echo "\t</ul>\n\t<h3>" . _x( 'Styles', 'Theme stylesheets in theme editor' ) . "</h3>\n\t<ul>\n";
     178            echo "\t</ul>\n\t<h2>" . _x( 'Styles', 'Theme stylesheets in theme editor' ) . "</h2>\n\t<ul>\n";
    179179
    180180        $file_description = get_file_description( $absolute_filename );
Note: See TracChangeset for help on using the changeset viewer.