[wp-trac] [WordPress Trac] #17653: Canonical Redirect when space(s) are used instead of hyphens when requesting a page

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 2 03:05:24 UTC 2011


#17653: Canonical Redirect when space(s) are used instead of hyphens when
requesting a page
--------------------------+-----------------------------
 Reporter:  jamescollins  |       Owner:  dd32
     Type:  enhancement   |      Status:  accepted
 Priority:  normal        |   Milestone:  Future Release
Component:  Canonical     |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------

Comment (by dd32):

 Canonical redirection for this case is added with the patch on #12456.

 As for why this works at all, It can be traced to get_page_by_path(),
 which replaces %20 with a space before sanitize_title()'ing it, causing
 the slug to be determined correctly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17653#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list