Don't over-target buttons in the publish meta box.
This selector caused breakage for any custom buttons added. props ericlewis. fixes #30035. git-svn-id: https://develop.svn.wordpress.org/trunk@30698 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
16ec77cd70
commit
5539cf7511
@ -415,7 +415,7 @@ jQuery(document).ready( function($) {
|
||||
}
|
||||
|
||||
// The form is being submitted by the user
|
||||
$submitButtons = $submitpost.find( ':button, :submit, a.submitdelete, #post-preview' ).on( 'click.edit-post', function( event ) {
|
||||
$submitButtons = $submitpost.find( ':submit, a.submitdelete, #post-preview' ).on( 'click.edit-post', function( event ) {
|
||||
var $button = $(this);
|
||||
|
||||
if ( $button.hasClass('disabled') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user