From 0a4022978bea32b1fd539058c1b0cd84ecc103de Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 2 Mar 2009 23:42:28 +0000 Subject: [PATCH] Add auth_redirect action git-svn-id: https://develop.svn.wordpress.org/trunk@10685 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index a2fbfa9d15..f58eff0887 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -724,6 +724,8 @@ function auth_redirect() { } if ( $user_id = wp_validate_auth_cookie() ) { + do_action('auth_redirect', $user_id); + // If the user wants ssl but the session is not ssl, redirect. if ( !$secure && get_user_option('use_ssl', $user_id) && false !== strpos($_SERVER['REQUEST_URI'], 'wp-admin') ) { if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {