Add auth_redirect action

git-svn-id: https://develop.svn.wordpress.org/trunk@10685 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-02 23:42:28 +00:00
parent 6a301a48c4
commit 0a4022978b
1 changed files with 2 additions and 0 deletions

View File

@ -724,6 +724,8 @@ function auth_redirect() {
} }
if ( $user_id = wp_validate_auth_cookie() ) { 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 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 ( !$secure && get_user_option('use_ssl', $user_id) && false !== strpos($_SERVER['REQUEST_URI'], 'wp-admin') ) {
if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) { if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {