Unnecessary post type check in wp_get_attachment_url
|Reported by:||jfarthing84||Owned by:|
Not sure why this needs to be done. You wouldn't be calling this function on a post if it wasn't an attachment. If you are, then you must have a good reason to be doing so, like I do.