[wp-trac] [WordPress Trac] #34523: Embeds: Make function parameters more clear

WordPress Trac noreply at wordpress.org
Sat Oct 31 11:24:08 UTC 2015


#34523: Embeds: Make function parameters more clear
--------------------------+--------------------------------------
 Reporter:  swissspidy    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.4
Component:  Embeds        |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch has-unit-tests
  Focuses:                |
--------------------------+--------------------------------------
 As raised [https://make.wordpress.org/core/2015/10/28/new-embeds-feature-
 in-wordpress-4-4/#comment-28268 in the comments] on the dev post:

 The first param (`$post)` of `get_post_embed_html()` and
 `get_oembed_response_data()` is optional, the others are required. We
 should change the order of the params.

 Patch attached.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34523>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list