mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Add auth_redirect action
git-svn-id: http://svn.automattic.com/wordpress/trunk@10685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
27ff02e402
commit
5d3a29dacd
@ -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') ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user