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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Duplicate of #16956.