From f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 24 Nov 2008 17:04:14 +0000 Subject: WP Merge with revision 9860 git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1542 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-login.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wp-login.php') 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/' ) ) -- cgit