~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/js/post.js

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
 
273
273
                        if ( typeof commentReply !== 'undefined' ) {
274
274
                                /*
 
275
                                 * Warn the user they have an unsaved comment before submitting
 
276
                                 * the post data for update.
 
277
                                 */
 
278
                                if ( ! commentReply.discardCommentChanges() ) {
 
279
                                        return false;
 
280
                                }
 
281
 
 
282
                                /*
275
283
                                 * Close the comment edit/reply form if open to stop the form
276
284
                                 * action from interfering with the post's form action.
277
285
                                 */