c_ws_plugin__s2member_login_redirects_r
public class c_ws_plugin__s2member_login_redirects_r
3.5
( 2 Methods ) Method Summary | |
---|---|
public static str | _empty_login_redirect_filter(str $redirect_to) Handles completely empty |
public static null | remove_login_redirect_filters() Removes all other |
public static str _empty_login_redirect_filter(str $redirect_to)
Handles completely empty login_redirect
values.
Some plugins (most notably BuddyPress v1.5) have a nasty habit of sending an empty $_REQUEST["redirect_to"]
input field with login widgets.
In the case of BuddyPress, it's own Filter against login_redirect
will deal with empty values. However, since s2Member removes all Filters
against login_redirect
(for compatibility), we NEED this simple routine to check empty values, and default them to admin_url()
.
add_filter("login_redirect");
110926
str $redirect_to - Expects the current $redirect_to
value, passed in by the Filter.
str - A non-empty string value. s2Member will NEVER allow this to be completely empty.
public static null remove_login_redirect_filters()
Removes all other login_redirect
Filters to prevent conflicts with s2Member.
add_action("init");
3.5
null
Login redirect removals.