Changeset 41047 for trunk/src/wp-includes/class-wp-oembed-controller.php
- Timestamp:
- 07/14/2017 04:04:04 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-oembed-controller.php
r41035 r41047 154 154 * @see WP_oEmbed::get_html() 155 155 * @param WP_REST_Request $request Full data about the request. 156 * @return WP_Error|arrayoEmbed response data or WP_Error on failure.156 * @return object|WP_Error oEmbed response data or WP_Error on failure. 157 157 */ 158 158 public function get_proxy_item( $request ) { … … 170 170 unset( $args['url'] ); 171 171 172 // Copy maxwidth/maxheight to width/height since WP_oEmbed::fetch() uses these arg names. 173 if ( isset( $args['maxwidth'] ) ) { 174 $args['width'] = $args['maxwidth']; 175 } 176 if ( isset( $args['maxheight'] ) ) { 177 $args['height'] = $args['maxheight']; 178 } 179 172 180 $data = _wp_oembed_get_object()->get_data( $url, $args ); 173 181
Note: See TracChangeset
for help on using the changeset viewer.