- Timestamp:
- 10/23/2018 05:47:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/class-wp-oembed-controller.php
r41162 r43810 174 174 } 175 175 176 // Short-circuit process for URLs belonging to the current site. 177 $data = get_oembed_response_data_for_url( $url, $args ); 178 179 if ( $data ) { 180 return $data; 181 } 182 176 183 $data = _wp_oembed_get_object()->get_data( $url, $args ); 177 184 … … 179 186 return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) ); 180 187 } 188 189 /** This filter is documented in wp-includes/class-oembed.php */ 190 $data->html = apply_filters( 'oembed_result', _wp_oembed_get_object()->data2html( (object) $data, $url ), $url, $args ); 181 191 182 192 /**
Note: See TracChangeset
for help on using the changeset viewer.