[wp-trac] [WordPress Trac] #33154: Issues with Editing Comments where the post ID is zero or post is deleted

WordPress Trac noreply at wordpress.org
Tue Jul 28 16:01:35 UTC 2015


#33154: Issues with Editing Comments where the post ID is zero or post is deleted
-----------------------------+-----------------------------
 Reporter:  johnnietb        |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Role/Capability  |    Version:  4.2.3
 Severity:  normal           |   Keywords:
  Focuses:  administration   |
-----------------------------+-----------------------------
 Issue after an update - dont know if was the 4.1.3 or later...

 Its not possible to edit, delete or change comments where post ID is zero
 or post has been deleted.
 This causes two issues for my clients:
  - One client has a plugin that creates "fishing reports" based on
 comments, and these are all collected by post ID being zero.
  - Second client has issues because the "actions bar" not to be displayed
 on the comments where post isn't found - so he cant delete/clean old
 comments.

 So far i figured this out:
 You guys added this on line 1147 in wp-includes/capabilities.php:
 {{{
 $caps[] = 'do_not_allow';
 }}}




 Is it possible to add two lines after line 1262:
 {{{
 if ( empty( $post ) )
  break;
 }}}


 Best regards
 Johnnie Bertelsen
 A keen WP user :)

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


More information about the wp-trac mailing list