Changeset 36880
- Timestamp:
- 03/08/2016 05:57:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-oembed.php
r36007 r36880 310 310 public function discover( $url ) { 311 311 $providers = array(); 312 $args = array( 313 'limit_response_size' => 153600, // 150 KB 314 ); 312 315 313 316 /** … … 321 324 * @param string $url URL to be inspected. 322 325 */ 323 $args = apply_filters( 'oembed_remote_get_args', array(), $url );326 $args = apply_filters( 'oembed_remote_get_args', $args, $url ); 324 327 325 328 // Fetch URL content … … 343 346 344 347 // Strip <body> 345 $html = substr( $html, 0, stripos( $html, '</head>' ) ); 348 if ( $html_head_end = stripos( $html, '</head>' ) ) { 349 $html = substr( $html, 0, $html_head_end ); 350 } 346 351 347 352 // Do a quick check
Note: See TracChangeset
for help on using the changeset viewer.