[wp-trac] [WordPress Trac] #31499: Trim non-breaking spaces from URLs

WordPress Trac noreply at wordpress.org
Fri Mar 20 00:23:56 UTC 2015


#31499: Trim non-breaking spaces from URLs
--------------------------+------------------
 Reporter:  pento         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  Canonical     |     Version:  2.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------

Comment (by pento):

 Replying to [comment:2 valendesigns]:
 > Wouldn't `preg_replace` do a search and replace for all non-breaking
 spaces, not just trim the last one?

 The `$` at the end of the regex means it'll only match non-breaking spaces
 at the end of the string.

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


More information about the wp-trac mailing list