Make WordPress Core

Changeset 32869


Ignore:
Timestamp:
06/19/2015 09:41:07 PM (10 years ago)
Author:
wonderboymusic
Message:

Use <button> instead of <a> for non-link links in Quick Edit.

Props afercia.
Fixes #32213.

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

Legend:

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

    r32752 r32869  
    15301530    ?>
    15311531        <p class="submit inline-edit-save">
    1532             <a href="#inline-edit" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></a>
     1532            <button type="button" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></button>
    15331533            <?php if ( ! $bulk ) {
    15341534                wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
    15351535                ?>
    1536                 <a href="#inline-edit" class="button-primary save alignright"><?php _e( 'Update' ); ?></a>
     1536                <button type="button" class="button-primary save alignright"><?php _e( 'Update' ); ?></button>
    15371537                <span class="spinner"></span>
    15381538            <?php } else {
  • trunk/src/wp-admin/js/inline-edit-post.js

    r32716 r32869  
    2323        });
    2424
    25         $('a.cancel', qeRow).click(function(){
     25        $( '.cancel', qeRow ).click( function() {
    2626            return inlineEditPost.revert();
    2727        });
    28         $('a.save', qeRow).click(function(){
     28        $( '.save', qeRow ).click( function() {
    2929            return inlineEditPost.save(this);
    3030        });
     
    3535        });
    3636
    37         $('a.cancel', bulkRow).click(function(){
     37        $( '.cancel', bulkRow ).click( function() {
    3838            return inlineEditPost.revert();
    3939        });
Note: See TracChangeset for help on using the changeset viewer.