[wp-trac] [WordPress Trac] #54990: Unload handler for inline replies to comments displays "Are you sure.." alert when nothing has been entered

WordPress Trac noreply at wordpress.org
Sat Jan 29 18:58:17 UTC 2022


#54990: Unload handler for inline replies to comments displays "Are you sure.."
alert when nothing has been entered
---------------------------+----------------------------------------
 Reporter:  davidbaumwald  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  6.0
Component:  Comments       |    Version:  4.6
 Severity:  normal         |   Keywords:  needs-patch good-first-bug
  Focuses:                 |
---------------------------+----------------------------------------
 While investigating #54621, there's a similar(perhaps related) issue
 happening in wp-admin/edit-comments.php.

 To reproduce:
 1. Click "Reply" on an existing comment.
 2. Don't enter anything in the "Reply to Comment" textarea.
 3. Click on "Reply" or "Quick Edit" on any other comment.
 4. Observe the "Are you sure..." alert.

 Resetting the `originalContent` property to an empty string when the
 `action` is not `edit` seems to fix the issue.

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


More information about the wp-trac mailing list