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

Props afercia.
Fixes #32213.

Built from https://develop.svn.wordpress.org/trunk@32869


git-svn-id: http://core.svn.wordpress.org/trunk@32840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-06-19 21:42:27 +00:00
parent 38037c8d62
commit 86beb35f6d
4 changed files with 7 additions and 7 deletions

View File

@ -1529,11 +1529,11 @@ class WP_Posts_List_Table extends WP_List_Table {
}
?>
<p class="submit inline-edit-save">
<a href="#inline-edit" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></a>
<button type="button" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></button>
<?php if ( ! $bulk ) {
wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
?>
<a href="#inline-edit" class="button-primary save alignright"><?php _e( 'Update' ); ?></a>
<button type="button" class="button-primary save alignright"><?php _e( 'Update' ); ?></button>
<span class="spinner"></span>
<?php } else {
submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false );

View File

@ -22,10 +22,10 @@ inlineEditPost = {
}
});
$('a.cancel', qeRow).click(function(){
$( '.cancel', qeRow ).click( function() {
return inlineEditPost.revert();
});
$('a.save', qeRow).click(function(){
$( '.save', qeRow ).click( function() {
return inlineEditPost.save(this);
});
$('td', qeRow).keydown(function(e){
@ -34,7 +34,7 @@ inlineEditPost = {
}
});
$('a.cancel', bulkRow).click(function(){
$( '.cancel', bulkRow ).click( function() {
return inlineEditPost.revert();
});

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32868';
$wp_version = '4.3-alpha-32869';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.