Make WordPress Core

Changeset 33024


Ignore:
Timestamp:
07/01/2015 02:53:48 PM (10 years ago)
Author:
obenland
Message:

Close comment quick edit before updating a post.

Fixes a bug where the user gets redirected to the All Posts screen, after
updating a post while quick editing a comment.

Props polevaultweb.
Fixes #29457.

File:
1 edited

Legend:

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

    r32856 r33024  
    11/* global postL10n, ajaxurl, wpAjax, setPostThumbnailL10n, postboxes, pagenow, tinymce, alert, deleteUserSetting */
    2 /* global theList:true, theExtraList:true, getUserSetting, setUserSetting */
     2/* global theList:true, theExtraList:true, getUserSetting, setUserSetting, commentReply */
    33
    44var commentsBox, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint, makeSlugeditClickable, editPermalink;
     
    267267            }
    268268
     269            // Close the comment edit/reply form if open to stop the form
     270            // action from interfering with the post's form action.
     271            commentReply.close();
     272
    269273            releaseLock = false;
    270274            $(window).off( 'beforeunload.edit-post' );
Note: See TracChangeset for help on using the changeset viewer.