summaryrefslogtreecommitdiffstats
path: root/wp-login.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-11-24 17:04:14 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-11-24 17:04:14 +0000
commitf3f3886b6ce0f9cdf2a663c450a1ddb8593bd799 (patch)
treee4ec667aae78a662485b750905182bf3d39c19ad /wp-login.php
parent23f67568a169dd05954b92d198923850709baae3 (diff)
downloadwordpress-mu-f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799.tar.gz
wordpress-mu-f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799.tar.xz
wordpress-mu-f3f3886b6ce0f9cdf2a663c450a1ddb8593bd799.zip
WP Merge with revision 9860
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1542 7be80a69-a1ef-0310-a953-fb0f7c49ff36
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/' ) )