Don't over-target buttons in the publish meta box.

This selector caused breakage for any custom buttons added.

props ericlewis.
fixes #30035.

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


git-svn-id: http://core.svn.wordpress.org/trunk@30688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2014-12-02 02:35:28 +00:00
parent 6fcf4ed3c5
commit cb5c43df83
3 changed files with 3 additions and 3 deletions

View File

@ -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') ) {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-beta2-30697';
$wp_version = '4.1-beta2-30698';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.