[wp-trac] [WordPress Trac] #49841: wp_get_attachment_url does not return a url

WordPress Trac noreply at wordpress.org
Thu Apr 23 14:48:26 UTC 2020


#49841: wp_get_attachment_url does not return a url
-------------------------------+------------------------------
 Reporter:  hughie.molloy      |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  5.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => reporter-feedback


Comment:

 Thanks for the report @hughiemolloy .

 Can you provide some steps to reproduce this bug from the beginning?

 For example, when I upload an image containing a space in its name it gets
 converted to a dash (`fun image.png` becomes `fun-image.png` at the point
 where it gets uploaded). How are you uploading an image and retaining the
 space in its name?

 Regardless of this, it does look like `rawurlencode` should be applied to
 the file name for correctness.

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


More information about the wp-trac mailing list