Opened 10 years ago
Closed 10 years ago
#31717 closed defect (bug) (fixed)
Add a filter to `attachment_url_to_postid`
Reported by: | mattwiebe | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
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.
In 31867: