[wp-trac] [WordPress Trac] #54621: Unsaved comment warning without any changes made when click on Publish, Update or Preview Buttons

WordPress Trac noreply at wordpress.org
Tue Dec 14 14:43:01 UTC 2021


#54621: Unsaved comment warning without any changes made when click on Publish,
Update or Preview Buttons
-------------------------------------------------+-------------------------
 Reporter:  askaryabbas                          |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  assigned
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  Comments                             |    Version:  5.8.2
 Severity:  major                                |   Keywords:
  Focuses:  javascript, administration, coding-  |
  standards                                      |
-------------------------------------------------+-------------------------
 Hi Team,

 I got unsaved comment changes warning without any changes made in the
 content of the custom post type post, here is screenshot:
 https://i.imgur.com/PQmirDL.png
 I see new codes are added in the WordPress core file: wp-admin/js/edit-
 comments.js And there is some condition issue, the code is have strict
 equality comparison operator to undefined ID which is not present in the
 custom post type: #replyrow
 Screenshot: https://i.imgur.com/kAHNkrs.png

 Please review it.
 Thanks

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


More information about the wp-trac mailing list