[buddypress-trac] [BuddyPress] #4199: Improve the logic of bp_core_login_redirect()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon May 14 16:06:02 UTC 2012


#4199: Improve the logic of bp_core_login_redirect()
------------------------------+---------------------
 Reporter:  boonebgorges      |       Owner:
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  1.6
Component:  Core              |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by boonebgorges):

 (In [6034]) Use the passed redirect_to value for checks in
 bp_core_login_redirect() instead of REQUEST global

 The redirect_to value passed to the login_redirect filter in wp-login.php
 is a
 cleaned up version of _REQUEST['redirect_to'], and is a more reliable
 indicator
 of where the link is trying to send the user. So it's a good idea to use
 it
 when checking for the presence of 'wp-admin' rather than referencing the
 global directly.

 See #4199

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4199#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list