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

WordPress Trac noreply at wordpress.org
Tue Oct 24 14:17:25 UTC 2017


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

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41991"]:
 {{{
 #!CommitTicketReference repository="" revision="41991"
 Canonical: Strip trailing punctuation from permalinks.

 Previously attempted in [40256], which caused the test for decoded curly
 quotes to fail in some environments.

 `$_SERVER['REQUEST_URI']` contains the encoded URI, so this version
 removes the failing tests and only checks for encoded curly quotes.

 Props joostdevalk, lancewillett, SergeyBiryukov.
 Fixes #20383.
 }}}

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


More information about the wp-trac mailing list