Changeset 44154 for trunk/src/wp-includes/class-wp-oembed-controller.php
- Timestamp:
- 12/14/2018 03:19:48 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43810
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/class-wp-oembed-controller.php
r43571 r44154 182 182 } 183 183 184 // Short-circuit process for URLs belonging to the current site. 185 $data = get_oembed_response_data_for_url( $url, $args ); 186 187 if ( $data ) { 188 return $data; 189 } 190 184 191 $data = _wp_oembed_get_object()->get_data( $url, $args ); 185 192 … … 187 194 return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) ); 188 195 } 196 197 /** This filter is documented in wp-includes/class-oembed.php */ 198 $data->html = apply_filters( 'oembed_result', _wp_oembed_get_object()->data2html( (object) $data, $url ), $url, $args ); 189 199 190 200 /**
Note: See TracChangeset
for help on using the changeset viewer.