mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
- fixed force hiding adminbar wp-admin setting;
This commit is contained in:
@@ -11,13 +11,13 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
$url = '';
|
||||
|
||||
if ( isset( $_REQUEST['redirect_to'] ) && !empty( $_REQUEST['redirect_to'] ) ) {
|
||||
if ( ! empty( $_REQUEST['redirect_to'] ) ) {
|
||||
$url = $_REQUEST['redirect_to'];
|
||||
echo '<input type="hidden" name="redirect_to" id="redirect_to" value="'.esc_url( $url ).'" />';
|
||||
|
||||
} else if ( isset( $args['after_login'] ) && !empty( $args['after_login'] ) ) {
|
||||
} elseif ( ! empty( $args['after_login'] ) ) {
|
||||
|
||||
switch( $args['after_login'] ) {
|
||||
switch ( $args['after_login'] ) {
|
||||
|
||||
case 'redirect_admin':
|
||||
$url = admin_url();
|
||||
|
||||
Reference in New Issue
Block a user