[wp-trac] [WordPress Trac] #24824: get_attached_file() treats fully qualified URLs as relative

WordPress Trac noreply at wordpress.org
Wed Mar 3 17:50:33 UTC 2021


#24824: get_attached_file() treats fully qualified URLs as relative
---------------------------------------------------+----------------------
 Reporter:  tobiaskochsonlinenet                   |       Owner:  (none)
     Type:  defect (bug)                           |      Status:  closed
 Priority:  normal                                 |   Milestone:
Component:  Media                                  |     Version:  2.7
 Severity:  normal                                 |  Resolution:  wontfix
 Keywords:  dev-feedback has-patch has-unit-tests  |     Focuses:
---------------------------------------------------+----------------------
Changes (by antpb):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 It's currently possible to use the `get_attached_file` filter to modify
 the function to use full URLs. With that consideration it was agreed in a
 recent Media bug scrub through older issues that this is best fit for a
 plugin (as one of the attendees actually had an example plugin using the
 filter for this reason.)

 Marking this wontfix to keep our open ticket list accurate to component
 goals.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/24824#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list