Changeset 33705 for trunk/src/wp-includes/media.php
- Timestamp:
- 08/22/2015 04:38:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r33643 r33705 3432 3432 $path = $url; 3433 3433 3434 $site_url = parse_url( $dir['url'] ); 3435 $image_path = parse_url( $path ); 3436 3437 //force the protocols to match if needed 3438 if ( isset( $image_path['scheme'] ) && ( $image_path['scheme'] !== $site_url['scheme'] ) ) { 3439 $path = str_replace( $image_path['scheme'], $site_url['scheme'], $path ); 3440 } 3441 3434 3442 if ( 0 === strpos( $path, $dir['baseurl'] . '/' ) ) { 3435 3443 $path = substr( $path, strlen( $dir['baseurl'] . '/' ) ); … … 3450 3458 * @param string $url The URL being looked up. 3451 3459 */ 3452 $post_id = apply_filters( 'attachment_url_to_postid', $post_id, $url ); 3453 3454 return (int) $post_id; 3460 return (int) apply_filters( 'attachment_url_to_postid', $post_id, $url ); 3455 3461 } 3456 3462
Note: See TracChangeset
for help on using the changeset viewer.