- fixed force hiding adminbar wp-admin setting;

This commit is contained in:
nikitozzzzzzz
2018-03-06 16:49:23 +02:00
parent 12891ff743
commit 6f97449626
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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',
+3 -3
View File
@@ -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();