[wp-trac] [WordPress Trac] #41445: post_parent can prevent media from embedding correctly
WordPress Trac
noreply at wordpress.org
Sun Sep 30 13:59:21 UTC 2018
#41445: post_parent can prevent media from embedding correctly
-------------------------------------------------+-------------------------
Reporter: loboyle | Owner:
| adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future
| Release
Component: REST API | Version: 4.9.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing dev- | Focuses: rest-api
feedback needs-unit-tests |
-------------------------------------------------+-------------------------
Comment (by danielbachhuber):
Here's another GitHub issue with prior conversation on the topic:
https://github.com/WP-API/WP-API/issues/1987#issuecomment-247355568
Essentially, this is a flaw in WordPress' permissions model for
attachments. The only way around it is with a meta query (querying to see
if the attachment is used as `_thumbnail_id` on any posts), but meta
queries have negative performance implications.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41445#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list