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

WordPress Trac noreply at wordpress.org
Wed Dec 23 20:44:01 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                      |
-------------------------------------------------+-------------------------

Comment (by adamsilverstein):

 [attachment:"41445.3.diff"] uses `get_post_status` as suggested by
 @peterwilsoncc. I added this in `src/wp-includes/rest-api/endpoints/class-
 wp-rest-posts-controller.php` (instead of over-riding in the media
 controller) since it should be safe to use across post types.

 Does this approach resolve the issue you reported @loboyle?

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


More information about the wp-trac mailing list