[wp-trac] [WordPress Trac] #55332: problem with quick comment discarded changes

WordPress Trac noreply at wordpress.org
Mon Mar 7 22:56:11 UTC 2022


#55332: problem with quick comment discarded changes
-------------------------------+-----------------------------
 Reporter:  LinuxArchitect     |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  5.9.1
 Severity:  minor              |   Keywords:
  Focuses:  javascript         |
-------------------------------+-----------------------------
 The function discardCommentChanges in js/edit-comments.js does not seem to
 be working as intended. When using the quick comment editor, the function
 is called when an edit is started, and it does nothing at that point as
 expected. But if you click away from the form, nothing stops you and you
 lose your comment changes.

 On the other hand, if a plugin enqueues edit-comment.js, buddyboss-
 platform does (I don't know how/why), and you are editing a post (my
 attached example is an event venue), the function is triggered on update.
 With no comments involved, the original content is an empty string and the
 editied comment is undefined and that triggers the popup warning that
 changes might be lost.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55332>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list