Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#25173 closed defect (bug) (duplicate)

Notices for orphaned comments in edit-comments.php page

Reported by: alexvorn2 Owned by:
Priority: normal Milestone:
Component: Comments Version:
Severity: normal Keywords:
Cc: Focuses:

Description

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.

Change History (2)

#1 @alexvorn2
13 years ago

more notices:

Notice: Trying to get property of non-object in D:\Dropbox\htdocs\wordpresslastmu\wp-admin\includes\class-wp-comments-list-table.php on line 503

Notice: Trying to get property of non-object in D:\Dropbox\htdocs\wordpresslastmu\wp-admin\includes\class-wp-comments-list-table.php on line 503

#2 @SergeyBiryukov
13 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #16956.

Note: See TracTickets for help on using tickets.