[wp-trac] [WordPress Trac] #15950: Tweak canonical redirect name requests

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 22 18:58:13 UTC 2010


#15950: Tweak canonical redirect name requests
--------------------------+-----------------------------
 Reporter:  johnbillion   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Canonical     |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  has-patch =>
 * type:  enhancement => defect (bug)


Comment:

 This is actually a bug then. Only the last part of the URL (ie. the 'name'
 query var) is used to guess the correct page.

 The resulting SQL when requesting either `example.com/foo/amazin` or
 `example.com/amazin` both look like this:

 `SELECT ID FROM wp_posts WHERE post_name LIKE 'amazin%' AND post_status =
 'publish'`.

 Not sure how to address this. Not sure if the return on investment in time
 fixing it is actually worth it.

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


More information about the wp-trac mailing list