[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 13:21:31 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  |
------------------------------+---------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 (In [6031]) Refactors bp_core_login_redirect() for better extensibility
 and flow

 This patch does the following:
 - Eases the restriction on login redirects to wp-admin. Previously, all
 such
   redirects were bounced back to the home page. While this restriction
 makes
   sense for the majority of users on the majority of BP installs (who
 never
   need to see the Dashboard), it was a pain for Administrators and other
 users
   who have legitimate reasons to visit wp-admin pages, especially when
   clicking directly on links in WP notification emails. This changeset
 allows
   login redirects to wp-admin to succeed when users are of the Contributor
   level or higher.
 - Introduces a filter bp_core_login_redirect, which allows plugins to
 override
   the default behavior of bp_core_login_redirect() for some users, without
   requiring that they unhook the function altogether.

 Fixes #4199
 Props djpaul, Jonathan Davis for help conceputalizing and testing

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


More information about the buddypress-trac mailing list