WordPress.org

Make WordPress Core

Changeset 30698


Ignore:
Timestamp:
12/02/2014 02:34:32 AM (6 years ago)
Author:
helen
Message:

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

This selector caused breakage for any custom buttons added.

props ericlewis.
fixes #30035.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/post.js

    r29336 r30698  
    416416
    417417    // The form is being submitted by the user
    418     $submitButtons = $submitpost.find( ':button, :submit, a.submitdelete, #post-preview' ).on( 'click.edit-post', function( event ) {
     418    $submitButtons = $submitpost.find( ':submit, a.submitdelete, #post-preview' ).on( 'click.edit-post', function( event ) {
    419419        var $button = $(this);
    420420
Note: See TracChangeset for help on using the changeset viewer.