mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed force hiding adminbar wp-admin setting;
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
'type' => 'checkbox',
|
||||
'label' => __( 'Force hiding adminbar in frontend?', 'ultimate-member' ),
|
||||
'tooltip' => __( 'Show/hide the adminbar on frontend', 'ultimate-member' ),
|
||||
'value' => ! empty( $role['_um_can_not_see_adminbar'] ) ? $role['_um_can_not_see_adminbar'] : 1,
|
||||
'value' => isset( $role['_um_can_not_see_adminbar'] ) ? $role['_um_can_not_see_adminbar'] : 1,
|
||||
),
|
||||
array(
|
||||
'id' => '_um_can_edit_everyone',
|
||||
|
||||
@@ -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