WordPress.org

Make WordPress Core

Changeset 33066


Ignore:
Timestamp:
07/03/2015 03:31:38 PM (6 years ago)
Author:
obenland
Message:

Check if commentReply exists before trying to work with it.

Fixes a bug that caused the save/publish flow to be interrupted by an AYS.

Introduced in [33024].
See #29457.

File:
1 edited

Legend:

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

    r33060 r33066  
    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();
     269            if ( typeof commentReply !== 'undefined' ) {
     270                /*
     271                 * Close the comment edit/reply form if open to stop the form
     272                 * action from interfering with the post's form action.
     273                 */
     274                commentReply.close();
     275            }
    272276
    273277            releaseLock = false;
Note: See TracChangeset for help on using the changeset viewer.