Make WordPress Core

Timestamp:
01/20/2021 04:39:24 AM (4 years ago)
Author:
peterwilsoncc
Message:

Media: Ensure get_post_status() returns correct result for attachments.

Prevent get_post_status() returning false for attachments if the parent post has been deleted. The returned attachment post status is now passed through the get_post_status filter.

Add tests for get_post_status().

Props peterwilsoncc, timothyblynjacobs for review.
Fixes #52326.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.