[wp-trac] [WordPress Trac] #36367: Give users control on the term redirect
WordPress Trac
noreply at wordpress.org
Fri Jun 10 11:55:39 UTC 2016
#36367: Give users control on the term redirect
----------------------------+------------------------------
Reporter: alexvandervegt | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.4.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
----------------------------+------------------------------
Comment (by alexvandervegt):
Hi @DrewAPicture this is a copy of an existing method inside the post.php
{{{#!php
<?php
wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id
) );
}}}
In my case we have a custom redirect scheme so we need to check for double
slugs on taxonomies, I use the existing redirect_post_location for posts
and this works awesome. However there was no likewise functionality for
the taxonomy part so that's where the patch comes in.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36367#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list