Ticket #31044: trac.31044.diff
| File trac.31044.diff, 367 bytes (added by , 11 years ago) |
|---|
-
wp-includes/media.php
diff --git wp-includes/media.php wp-includes/media.php index c7d092d..8be4fa6 100644
function attachment_url_to_postid( $url ) { 3301 3301 $path 3302 3302 ); 3303 3303 $post_id = $wpdb->get_var( $sql ); 3304 if ( ! empty( $post_id ) ) { 3305 return (int) $post_id; 3306 } 3304 3305 return $post_id ? (int) $post_id : 0; 3307 3306 } 3308 3307 3309 3308 /**