Opened 11 years ago
Closed 11 years ago
#31717 closed defect (bug) (fixed)
Add a filter to `attachment_url_to_postid`
| Reported by: | mattwiebe | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Media | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
attachment_url_to_postid doesn't work on WordPress.com, which breaks any Customizer upload controls from showing their current file. Rather than trying to make the function work to support our tricky uploads system, a filter should be introduced so we (and anyone else with an unconventional filesystem) can use fallbacks to find the attachment ID.
Attachments (1)
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)
In 31867: