[wp-hackers] redirects for /admin

Andrew Nacin wp at andrewnacin.com
Wed Mar 6 18:26:07 UTC 2013

On Wed, Mar 6, 2013 at 12:59 PM, Kirk Wight <kwight at kwight.ca> wrote:

> The redirect is happening through a redirect tool on WP Engine, which I
> thought would be at the server level; I'll dig deeper with them.
> Still, out of curiosity, what is the best way to filter or remove that
> x/admin redirect? I'm combing through rewrite.php and filters now.

It's in canonical.php.

add_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );

More information about the wp-hackers mailing list