[wp-trac] [WordPress Trac] #33920: `wp_old_slug_redirect` ignores rewrite endpoints

WordPress Trac noreply at wordpress.org
Fri Sep 25 08:53:20 UTC 2015


#33920: `wp_old_slug_redirect` ignores rewrite endpoints
--------------------------+------------------
 Reporter:  swissspidy    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  Query         |     Version:  2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------

Comment (by swissspidy):

 This doesn't change behaviour for attachments, as they already seem to
 work properly. Perhaps because of `redirect_canonical`.

 In `WP_Query` `name` is set to the attachment slug, so
 `wp_old_slug_redirect` has no effect.

 I added a test for it in [attachment:33920.6.diff 33920.6.diff] anyway,
 and also tested this with paginated posts.

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


More information about the wp-trac mailing list