[wp-trac] [WordPress Trac] #25173: Notices for orphaned comments in edit-comments.php page

WordPress Trac noreply at wordpress.org
Thu Aug 29 00:44:30 UTC 2013


#25173: Notices for orphaned comments in edit-comments.php page
--------------------------+-----------------------------
 Reporter:  alexvorn2     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I get these notices in the comments page:

 `wp-admin/edit-comments.php`


 {{{
 Notice: Trying to get property of non-object in
 D:\Dropbox\htdocs\wordpresslastmu\wp-includes\capabilities.php on line
 1078

 Notice: Trying to get property of non-object in
 D:\Dropbox\htdocs\wordpresslastmu\wp-includes\capabilities.php on line
 1079

 Notice: Trying to get property of non-object in
 D:\Dropbox\htdocs\wordpresslastmu\wp-includes\capabilities.php on line
 1079

 Notice: Trying to get property of non-object in
 D:\Dropbox\htdocs\wordpresslastmu\wp-includes\capabilities.php on line
 1082

 Notice: Trying to get property of non-object in
 D:\Dropbox\htdocs\wordpresslastmu\wp-includes\capabilities.php on line
 1082
 }}}

 The problem is that the comment is from a post of a custom Post Type - and
 after the comment was published - the post type was removed, so the
 comment is like orphaned.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25173>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list