Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#28775 closed defect (bug) (duplicate)

wp_dashboard_recent_comments() should limit to existing post types

Reported by: rarst's profile Rarst Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9.1
Component: General Keywords:
Focuses: Cc:

Description

The query for comments in the function doesn't account that comments can belong to CPT which is no longer active. In that case it causes a lot of notices downstream from read_post capability check.

Change History (1)

#1 @DrewAPicture
10 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.