Make WordPress Core

Changeset 31331


Ignore:
Timestamp:
02/04/2015 03:45:24 AM (10 years ago)
Author:
helen
Message:

Accessibility: remove remaining instances of accesskey.

It is a poorly implemented browser feature, not particularly discoverable, and causes more problems than it helps solve.

props afercia.
fixes #29715.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r31308 r31331  
    13291329    ?>
    13301330        <p class="submit inline-edit-save">
    1331             <a accesskey="c" href="#inline-edit" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></a>
     1331            <a href="#inline-edit" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></a>
    13321332            <?php if ( ! $bulk ) {
    13331333                wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
    13341334                ?>
    1335                 <a accesskey="s" href="#inline-edit" class="button-primary save alignright"><?php _e( 'Update' ); ?></a>
     1335                <a href="#inline-edit" class="button-primary save alignright"><?php _e( 'Update' ); ?></a>
    13361336                <span class="spinner"></span>
    13371337            <?php } else {
    1338                 submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false, array( 'accesskey' => 's' ) );
     1338                submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false );
    13391339            } ?>
    13401340            <input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r31200 r31331  
    498498
    499499        <p class="inline-edit-save submit">
    500             <a accesskey="c" href="#inline-edit" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
    501             <a accesskey="s" href="#inline-edit" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></a>
     500            <a href="#inline-edit" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
     501            <a href="#inline-edit" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></a>
    502502            <span class="spinner"></span>
    503503            <span class="error" style="display:none;"></span>
  • trunk/src/wp-admin/includes/meta-boxes.php

    r31303 r31331  
    249249        if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    250250        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
    251         <?php submit_button( __( 'Schedule' ), 'primary button-large', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
     251        <?php submit_button( __( 'Schedule' ), 'primary button-large', 'publish', false ); ?>
    252252<?php   else : ?>
    253253        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
    254         <?php submit_button( __( 'Publish' ), 'primary button-large', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
     254        <?php submit_button( __( 'Publish' ), 'primary button-large', 'publish', false ); ?>
    255255<?php   endif;
    256256    else : ?>
    257257        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" />
    258         <?php submit_button( __( 'Submit for Review' ), 'primary button-large', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
     258        <?php submit_button( __( 'Submit for Review' ), 'primary button-large', 'publish', false ); ?>
    259259<?php
    260260    endif;
    261261} else { ?>
    262262        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" />
    263         <input name="save" type="submit" class="button button-primary button-large" id="publish" accesskey="p" value="<?php esc_attr_e('Update') ?>" />
     263        <input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update' ) ?>" />
    264264<?php
    265265} ?>
     
    331331        <span class="spinner"></span>
    332332        <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" />
    333         <input name="save" type="submit" class="button-primary button-large" id="publish" accesskey="p" value="<?php esc_attr_e('Update') ?>" />
     333        <input name="save" type="submit" class="button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update' ) ?>" />
    334334    </div>
    335335    <div class="clear"></div>
     
    821821<div id="publishing-action">
    822822<?php if ( !empty($link->link_id) ) { ?>
    823     <input name="save" type="submit" class="button-large button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" />
     823    <input name="save" type="submit" class="button-large button-primary" id="publish" value="<?php esc_attr_e( 'Update Link' ) ?>" />
    824824<?php } else { ?>
    825     <input name="save" type="submit" class="button-large button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" />
     825    <input name="save" type="submit" class="button-large button-primary" id="publish" value="<?php esc_attr_e( 'Add Link' ) ?>" />
    826826<?php } ?>
    827827</div>
Note: See TracChangeset for help on using the changeset viewer.