[wp-trac] [WordPress Trac] #39696: REST API: Filter which links get embedded when passing the ?_embed query parameter

WordPress Trac noreply at wordpress.org
Mon Jan 30 00:25:49 UTC 2017


#39696: REST API: Filter which links get embedded when passing the ?_embed query
parameter
-------------------------------------------------+-------------------------
 Reporter:  rheinardkorf                         |       Owner:
     Type:  enhancement                          |  adamsilverstein
 Priority:  normal                               |      Status:  assigned
Component:  REST API                             |   Milestone:  Awaiting
 Severity:  normal                               |  Review
 Keywords:  2nd-opinion needs-refresh needs-     |     Version:  4.7.1
  unit-tests                                     |  Resolution:
                                                 |     Focuses:  rest-api
-------------------------------------------------+-------------------------

Comment (by rheinardkorf):

 @jnylen0 , @adamsilverstein  I've added a patch now that includes the
 additional changes.

 Unit tests now look a lot nicer and `::embed_links()` and
 `::response_to_data()` both now have an additional $request argument that
 is set to false by default to not break anything else.

 Would be happy for this to be tested and feedback is of course most
 welcome!

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


More information about the wp-trac mailing list