[wp-trac] [WordPress Trac] #41445: post_parent can prevent media from embedding correctly
WordPress Trac
noreply at wordpress.org
Sun Oct 25 02:09:08 UTC 2020
#41445: post_parent can prevent media from embedding correctly
-------------------------------------------------+-------------------------
Reporter: loboyle | Owner:
| adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future
| Release
Component: Media | Version: 4.9.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing dev- | Focuses: rest-api
feedback needs-unit-tests |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):
* component: REST API => Media
Comment:
Instead of having to do an expensive meta query every time we check read
permissions, could we try updating the post parent instead?
So whenever a post is moved to a non-public status, check if it is the
parent of any media items. If so, looks for a new parent candidate by
doing the `_thumbnail_id` meta query?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41445#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list