Make WordPress Core


Ignore:
Timestamp:
10/28/2015 11:07:08 PM (10 years ago)
Author:
afercia
Message:

Media: Improve the headings hierarchy in the Media Views for better accessibility.

Fixes #34273.

File:
1 edited

Legend:

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

    r34234 r35427  
    4747    <div class="imgedit-group">
    4848    <div class="imgedit-group-top">
    49         <h3><?php _e( 'Scale Image' ); ?> <a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);return false;"></a></h3>
     49        <h2><?php _e( 'Scale Image' ); ?> <a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);return false;"></a></h2>
    5050        <div class="imgedit-help">
    5151        <p><?php _e('You can proportionally scale the original image. For best results, scaling should be done before you crop, flip, or rotate. Images can only be scaled down, not up.'); ?></p>
     
    6666    <div class="imgedit-group">
    6767    <div class="imgedit-group-top">
    68         <h3><a onclick="imageEdit.toggleHelp(this);return false;" href="#"><?php _e('Restore Original Image'); ?> <span class="dashicons dashicons-arrow-down imgedit-help-toggle"></span></a></h3>
     68        <h2><a onclick="imageEdit.toggleHelp(this);return false;" href="#"><?php _e('Restore Original Image'); ?> <span class="dashicons dashicons-arrow-down imgedit-help-toggle"></span></a></h2>
    6969        <div class="imgedit-help">
    7070        <p><?php _e('Discard any changes and restore the original image.');
     
    8585    <div class="imgedit-group">
    8686    <div class="imgedit-group-top">
    87         <h3><?php _e('Image Crop'); ?> <a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);return false;"></a></h3>
     87        <h2><?php _e( 'Image Crop' ); ?> <a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);return false;"></a></h2>
    8888
    8989        <div class="imgedit-help">
     
    123123    <div class="imgedit-group imgedit-applyto">
    124124    <div class="imgedit-group-top">
    125         <h3><?php _e('Thumbnail Settings'); ?> <a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);return false;"></a></h3>
     125        <h2><?php _e( 'Thumbnail Settings' ); ?> <a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);return false;"></a></h2>
    126126        <p class="imgedit-help"><?php _e('You can edit the image while preserving the thumbnail. For example, you may wish to have a square thumbnail that displays just a section of the image.'); ?></p>
    127127    </div>
Note: See TracChangeset for help on using the changeset viewer.