[wp-trac] [WordPress Trac] #41445: post_parent can prevent media from embedding correctly
WordPress Trac
noreply at wordpress.org
Tue Jan 9 09:43:23 UTC 2018
#41445: post_parent can prevent media from embedding correctly
--------------------------+------------------------------
Reporter: loboyle | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.8.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: rest-api
--------------------------+------------------------------
Comment (by Krstarica):
Same on 4.9.1.
If post_parent of image is having status other than 'publish',
rest_forbidden occurs.
For example, for image having ID 125676, the result of this query has to
be 'publish':
{{{
SELECT b.post_status FROM wp_posts a, wp_posts b WHERE a.ID = 125676 AND
a.post_parent=b.ID
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41445#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list