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

props Cheffheid.
fixes #33559.

git-svn-id: https://develop.svn.wordpress.org/trunk@33817 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-08-31 03:25:27 +00:00
parent 8aefa21974
commit 7f3b90bc77
2 changed files with 13 additions and 15 deletions

View File

@ -329,14 +329,14 @@ h1 {
margin: .67em 0;
}
.wrap > h1,
h2 {
.wrap > h1 {
color: #23282d;
font-size: 1.5em;
margin: .83em 0;
font-weight: 400;
}
h2,
h3 {
color: #23282d;
font-size: 1.3em;
@ -568,14 +568,12 @@ code {
}
.wrap h1,
.wrap h2,
.subtitle {
font-weight: normal;
margin: 0;
}
.wrap h1,
.wrap h2 {
.wrap h1 {
font-size: 23px;
font-weight: 400;
padding: 9px 15px 4px 0;

View File

@ -159,7 +159,7 @@ function core_upgrade_preamble() {
$updates = get_core_updates();
if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) {
echo '<h3>';
echo '<h2>';
_e('You have the latest version of WordPress.');
if ( wp_http_supports( array( 'ssl' ) ) ) {
@ -175,15 +175,15 @@ function core_upgrade_preamble() {
if ( $should_auto_update )
echo ' ' . __( 'Future security updates will be applied automatically.' );
}
echo '</h3>';
echo '</h2>';
} else {
echo '<div class="notice notice-warning"><p>';
_e('<strong>Important:</strong> before updating, please <a href="https://codex.wordpress.org/WordPress_Backups">back up your database and files</a>. For help with updates, visit the <a href="https://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.');
echo '</p></div>';
echo '<h3 class="response">';
echo '<h2 class="response">';
_e( 'An updated version of WordPress is available.' );
echo '</h3>';
echo '</h2>';
}
if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) {
@ -225,7 +225,7 @@ function list_plugin_updates() {
require_once(ABSPATH . 'wp-admin/includes/plugin-install.php');
$plugins = get_plugin_updates();
if ( empty( $plugins ) ) {
echo '<h3>' . __( 'Plugins' ) . '</h3>';
echo '<h2>' . __( 'Plugins' ) . '</h2>';
echo '<p>' . __( 'Your plugins are all up to date.' ) . '</p>';
return;
}
@ -237,7 +237,7 @@ function list_plugin_updates() {
else
$core_update_version = $core_updates[0]->current;
?>
<h3><?php _e( 'Plugins' ); ?></h3>
<h2><?php _e( 'Plugins' ); ?></h2>
<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>
<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-plugins" class="upgrade">
<?php wp_nonce_field('upgrade-core'); ?>
@ -314,14 +314,14 @@ function list_plugin_updates() {
function list_theme_updates() {
$themes = get_theme_updates();
if ( empty( $themes ) ) {
echo '<h3>' . __( 'Themes' ) . '</h3>';
echo '<h2>' . __( 'Themes' ) . '</h2>';
echo '<p>' . __( 'Your themes are all up to date.' ) . '</p>';
return;
}
$form_action = 'update-core.php?action=do-theme-upgrade';
?>
<h3><?php _e( 'Themes' ); ?></h3>
<h2><?php _e( 'Themes' ); ?></h2>
<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>
<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>
<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-themes" class="upgrade">
@ -366,7 +366,7 @@ function list_translation_updates() {
$updates = wp_get_translation_updates();
if ( ! $updates ) {
if ( 'en_US' != get_locale() ) {
echo '<h3>' . __( 'Translations' ) . '</h3>';
echo '<h2>' . __( 'Translations' ) . '</h2>';
echo '<p>' . __( 'Your translations are all up to date.' ) . '</p>';
}
return;
@ -374,7 +374,7 @@ function list_translation_updates() {
$form_action = 'update-core.php?action=do-translation-upgrade';
?>
<h3><?php _e( 'Translations' ); ?></h3>
<h2><?php _e( 'Translations' ); ?></h2>
<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-translations" class="upgrade">
<p><?php _e( 'New translations are available.' ); ?></p>
<?php wp_nonce_field( 'upgrade-translations' ); ?>