Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25173 closed defect (bug) (duplicate)

Notices for orphaned comments in edit-comments.php page

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

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
11 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
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #16956.

Note: See TracTickets for help on using tickets.