Opened 12 years ago
Closed 12 years ago
#31044 closed defect (bug) (fixed)
attachment_url_to_postid() does not always return result
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
Description
attachment_url_to_postid() should always return an integer, like url_to_postid() does.
Currently, if the ID is not found, it returns nothing.
Attachments (2)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch for attachment_url_to_postid