Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#28775 closed defect (bug) (duplicate)

wp_dashboard_recent_comments() should limit to existing post types

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

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

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #16956.

Note: See TracTickets for help on using tickets.