[wp-trac] [WordPress Trac] #36549: Space in attachment filename breaks srcset

WordPress Trac noreply at wordpress.org
Tue May 24 09:19:14 UTC 2016

#36549: Space in attachment filename breaks srcset
 Reporter:  underdude     |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:

Comment (by underdude):

 Running the `str_replace()` after the filter seems right to me too. That
 way any new spaces can't be introduced through the filter and the
 replacements before the filter can't be undone.

Ticket URL: <https://core.trac.wordpress.org/ticket/36549#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list