[wp-trac] [WordPress Trac] #15397: redirect_guess_404_permalink() purposedly doesn't guess posts with updated dates

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 26 09:30:32 UTC 2011


#15397: redirect_guess_404_permalink() purposedly doesn't guess posts with updated
dates
------------------------------------+-----------------------------
 Reporter:  archon810               |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  lowest                  |   Milestone:  Future Release
Component:  Canonical               |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------------
Changes (by solarissmoke):

 * keywords:  2nd-opinion => has-patch dev-feedback


Comment:

 Attaching is a patch that tries to make the function more lenient without
 being too liberal:

 If only one match for post name is found, it returns that without querying
 dates. Otherwise it tries to find the best match out of several by
 factoring in dates, incrementally by year, month, and day. There has to be
 a clear winner on the date match otherwise it returns false.

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


More information about the wp-trac mailing list