[wp-trac] [WordPress Trac] #41445: post_parent can prevent media from embedding correctly

WordPress Trac noreply at wordpress.org
Wed Feb 14 17:44:30 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.9.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by adamsilverstein):

 @stuartfeldt Your suggestion to ''override get_item_permissions_check in
 WP_REST_Attachments_Controller, and then check if the requested attachment
 id is also set as _thumbnail_id postmeta'' sounds reasonable - could you
 work on a patch?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41445#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list