Ticket #31717: 31717.diff
| File 31717.diff, 568 bytes (added by , 11 years ago) |
|---|
-
wp-includes/media.php
3409 3409 ); 3410 3410 $post_id = $wpdb->get_var( $sql ); 3411 3411 3412 /** 3413 * Filter an attachment id found by URL. 3414 * 3415 * @since 4.2.0 3416 * 3417 * @param int|null $post_id The post_id (if any) found by the function. 3418 * @param string $url The URL being looked up. 3419 */ 3420 $post_id = apply_filters( 'attachment_url_to_postid', $post_id, $url ); 3421 3412 3422 return (int) $post_id; 3413 3423 } 3414 3424