Make WordPress Core

Changeset 33817


Ignore:
Timestamp:
08/31/2015 03:25:27 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Bump H3 headings to H2 on WordPress Updates screen for better accessibility.

props Cheffheid.
fixes #33559.

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

Legend:

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

    r33762 r33817  
    330330}
    331331
    332 .wrap > h1,
    333 h2 {
     332.wrap > h1 {
    334333        color: #23282d;
    335334        font-size: 1.5em;
     
    338337}
    339338
     339h2,
    340340h3 {
    341341        color: #23282d;
     
    569569
    570570.wrap h1,
    571 .wrap h2,
    572571.subtitle {
    573572        font-weight: normal;
     
    575574}
    576575
    577 .wrap h1,
    578 .wrap h2 {
     576.wrap h1 {
    579577        font-size: 23px;
    580578        font-weight: 400;
  • trunk/src/wp-admin/update-core.php

    r33802 r33817  
    160160
    161161        if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) {
    162                 echo '<h3>';
     162                echo '<h2>';
    163163                _e('You have the latest version of WordPress.');
    164164
     
    176176                                echo ' ' . __( 'Future security updates will be applied automatically.' );
    177177                }
    178                 echo '</h3>';
     178                echo '</h2>';
    179179        } else {
    180180                echo '<div class="notice notice-warning"><p>';
     
    182182                echo '</p></div>';
    183183
    184                 echo '<h3 class="response">';
     184                echo '<h2 class="response">';
    185185                _e( 'An updated version of WordPress is available.' );
    186                 echo '</h3>';
     186                echo '</h2>';
    187187        }
    188188
     
    226226        $plugins = get_plugin_updates();
    227227        if ( empty( $plugins ) ) {
    228                 echo '<h3>' . __( 'Plugins' ) . '</h3>';
     228                echo '<h2>' . __( 'Plugins' ) . '</h2>';
    229229                echo '<p>' . __( 'Your plugins are all up to date.' ) . '</p>';
    230230                return;
     
    238238                $core_update_version = $core_updates[0]->current;
    239239        ?>
    240 <h3><?php _e( 'Plugins' ); ?></h3>
     240<h2><?php _e( 'Plugins' ); ?></h2>
    241241<p><?php _e( 'The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.' ); ?></p>
    242242<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-plugins" class="upgrade">
     
    315315        $themes = get_theme_updates();
    316316        if ( empty( $themes ) ) {
    317                 echo '<h3>' . __( 'Themes' ) . '</h3>';
     317                echo '<h2>' . __( 'Themes' ) . '</h2>';
    318318                echo '<p>' . __( 'Your themes are all up to date.' ) . '</p>';
    319319                return;
     
    322322        $form_action = 'update-core.php?action=do-theme-upgrade';
    323323?>
    324 <h3><?php _e( 'Themes' ); ?></h3>
     324<h2><?php _e( 'Themes' ); ?></h2>
    325325<p><?php _e( 'The following themes have new versions available. Check the ones you want to update and then click &#8220;Update Themes&#8221;.' ); ?></p>
    326326<p><?php printf( __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ), __( 'https://codex.wordpress.org/Child_Themes' ) ); ?></p>
     
    367367        if ( ! $updates ) {
    368368                if ( 'en_US' != get_locale() ) {
    369                         echo '<h3>' . __( 'Translations' ) . '</h3>';
     369                        echo '<h2>' . __( 'Translations' ) . '</h2>';
    370370                        echo '<p>' . __( 'Your translations are all up to date.' ) . '</p>';
    371371                }
     
    375375        $form_action = 'update-core.php?action=do-translation-upgrade';
    376376        ?>
    377         <h3><?php _e( 'Translations' ); ?></h3>
     377        <h2><?php _e( 'Translations' ); ?></h2>
    378378        <form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-translations" class="upgrade">
    379379                <p><?php _e( 'New translations are available.' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.