get_post_format() can throw PHP notice and doesn't return WP_Error
|Reported by:||azaozz||Owned by:||nacin|
The function get_post_format() part of the post formats API throws a PHP notice when called with non-existing post_ID. It also doesn't return WP_Error although most uses in core expect that.
Change History (19)
comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 adamsilverstein — 14 months ago
- Keywords has-patch added
Note: See TracTickets for help on using tickets.