mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-14 15:49:16 +01:00
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:
parent
38037c8d62
commit
86beb35f6d
@ -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 );
|
||||
|
@ -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();
|
||||
});
|
||||
|
||||
|
2
wp-admin/js/inline-edit-post.min.js
vendored
2
wp-admin/js/inline-edit-post.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user