[wp-trac] [WordPress Trac] #31717: Add a filter to `attachment_url_to_postid`

WordPress Trac noreply at wordpress.org
Fri Mar 20 21:49:22 UTC 2015

#31717: Add a filter to `attachment_url_to_postid`
 Reporter:  mattwiebe     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:                |
 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.

Ticket URL: <https://core.trac.wordpress.org/ticket/31717>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list