Ticket #16996: 16996.diff
File 16996.diff, 818 bytes (added by , 13 years ago) |
---|
-
wp-includes/class-oembed.php
169 169 $provider = add_query_arg( 'maxheight', $args['height'], $provider ); 170 170 $provider = add_query_arg( 'url', urlencode($url), $provider ); 171 171 172 // hackish way to remove strangely (non-oAuth) named args 173 unset($args['width']); 174 unset($args['height']); 175 unset($args['discover']); 176 177 foreach ( $args as $key => $value ) { 178 $provider = add_query_arg( $key, $value, $provider ); 179 } 180 172 181 foreach( array( 'json', 'xml' ) as $format ) { 173 182 $result = $this->_fetch_with_format( $provider, $format ); 174 183 if ( is_wp_error( $result ) && 'not-implemented' == $result->get_error_code() )