summaryrefslogtreecommitdiffstats
path: root/wp-login.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-login.php')
-rw-r--r--wp-login.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-login.php b/wp-login.php
index 8116267..c958599 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -420,6 +420,8 @@ default:
$user = wp_signon('', $secure_cookie);
+ $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);
+
if ( !is_wp_error($user) ) {
// If the user can't edit posts, send them to their profile.
if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) )