WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 8 months ago

#21031 closed defect (bug)

map_meta_cap emits notices if $post is empty — at Initial Version

Reported by: johnjamesjacoby Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Warnings/Notices Keywords: has-patch
Focuses: Cc:

Description

map_meta_cap is not prepared to handle missing or invalid post ID's. To duplicate this, delete a post from the posts table without deleting its attached comments, then visit the admin dashboard with the recent comments widget visible.

Change History (2)

johnjamesjacoby22 months ago

johnjamesjacoby22 months ago

Related: Comments list table exhibits similar issue

Note: See TracTickets for help on using tickets.