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 | 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)
Note: See
TracTickets for help on using
tickets.
Duplicate of #16956.