[wp-trac] [WordPress Trac] #20383: Strip trailing punctuation with canonical URLs

WordPress Trac noreply at wordpress.org
Fri Mar 17 19:07:34 UTC 2017


#20383: Strip trailing punctuation with canonical URLs
--------------------------+-----------------------------
 Reporter:  nacin         |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.8
Component:  Canonical     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------
Changes (by ocean90):

 * keywords:  has-patch has-unit-tests commit => needs-patch


Comment:

 Replying to [comment:11 gitlost]:
 > To get around it one could use the Joomla function, or maybe just wrap
 `parse_url()` with before and after setlocales, eg:

 Sounds like something which we could add to `wp_parse_url()`.

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


More information about the wp-trac mailing list