diff --git a/wp-includes/post.php b/wp-includes/post.php index 24370d815..8f9804e2c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3890,7 +3890,7 @@ function wp_get_attachment_url( $post_id = 0 ) { if ( !$post =& get_post( $post_id ) ) return false; - if ( 'attachment' != $post->post_type ); + if ( 'attachment' != $post->post_type ) return false; $url = '';