[wp-trac] [WordPress Trac] #31044: attachment_url_to_postid() does not always return result
WordPress Trac
noreply at wordpress.org
Sun Jan 18 09:30:03 UTC 2015
#31044: attachment_url_to_postid() does not always return result
----------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Media | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
----------------------------+----------------------------------------
[source:tags/4.1/src/wp-includes/media.php#L3279
attachment_url_to_postid()] should always return an integer, like
[source:tags/4.1/src/wp-includes/rewrite.php#L277 url_to_postid()] does.
Currently, if the ID is not found, it returns nothing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31044>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list