[wp-trac] [WordPress Trac] #37826: Can't manage comments of trashed posts

WordPress Trac noreply at wordpress.org
Fri Aug 9 11:14:51 UTC 2019


#37826: Can't manage comments of trashed posts
-------------------------------------------------+-------------------------
 Reporter:  swissspidy                           |       Owner:  stevenlinx
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Comments                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch good-      |     Focuses:
  first-bug                                      |
-------------------------------------------------+-------------------------
Changes (by donmhico):

 * keywords:  has-screenshots has-patch good-first-bug needs-refresh => has-
     screenshots has-patch good-first-bug


Comment:

 I refreshed the patch and did some changes. Since
 {{{#!php
 $comment_id = absint( $_GET['c'] );
 $comment = get_comment( $comment_id );
 }}}

 is already defined above, I remove those inside the `editcomment` and
 `spam` switch clause to prevent multiple calls to it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37826#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list