[wp-trac] [WordPress Trac] #16996: oEmbed: Allow custom arguments to be specified

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 31 15:29:07 UTC 2011


#16996: oEmbed: Allow custom arguments to be specified
-----------------------------+------------------------------
 Reporter:  newmediarts      |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Embeds           |     Version:  3.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by newmediarts):

 Thanks for the initial patch, jacobwg!

 Instead of using a {{{foreach}}} statement,
 [http://codex.wordpress.org/Function_Reference/add_query_arg
 add_query_arg()] lets you pass in an associative array of parameters, so
 you can just do this, which is much cleaner:

 {{{ add_query_arg( $args, $provider ); }}}

 Would this patch also affect oEmbed URLs that get automatically converted
 in the post content? That's what I'm most interested in.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16996#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list