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

WordPress Trac noreply at wordpress.org
Fri Dec 15 08:30:52 UTC 2017


#15397: redirect_guess_404_permalink() doesn't guess posts with updated dates
--------------------------------------+---------------------
 Reporter:  archon810                 |       Owner:  pento
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.9.2
Component:  Canonical                 |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by pento):

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


Comment:

 In [changeset:"42401"]:
 {{{
 #!CommitTicketReference repository="" revision="42401"
 Canonical URLs: Redirect to the correct URL when the post date changes.

 When a post slug is changed, we store a copy of the old slug, so that we
 can redirect visitors visiting the old URL to the new URL.

 In the same way, this stores a copy of the old date, when the post date
 changes, so we can redirect visitors to the new URL.

 Props nickmomrik.
 Fixes #15397 for trunk.
 }}}

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


More information about the wp-trac mailing list