From 19d165059d91baa4d7449c4d07680ca7eb9a2705 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 13 Sep 2012 17:49:23 +0000 Subject: [PATCH] Switch $args and $url for the oembed_fetch_url filter introduced in [21839]. A bit more logical, especially given the order of arguments passed to fetch(). see #16996. git-svn-id: http://core.svn.wordpress.org/trunk@21840 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 72a26ed0af..614f605c66 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -162,8 +162,8 @@ class WP_oEmbed { $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider ); $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider ); $provider = add_query_arg( 'url', urlencode($url), $provider ); - - $provider = apply_filters( 'oembed_fetch_url', $provider, $args, $url ); + + $provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args ); foreach( array( 'json', 'xml' ) as $format ) { $result = $this->_fetch_with_format( $provider, $format );