- fixed transferring restriction content options;

- fixed user add/edit section for multisite (in processing);
This commit is contained in:
nikitozzzzzzz
2017-11-17 14:14:51 +02:00
parent 13cf985acd
commit 6f5b6205d0
2 changed files with 16 additions and 8 deletions
+5 -3
View File
@@ -269,7 +269,7 @@ if ( ! class_exists( 'User' ) ) {
if ( ! empty( $section_content ) ) {
if ( $userdata !== 'add-new-user' ) { ?>
if ( $userdata !== 'add-new-user' && $userdata !== 'add-existing-user' ) { ?>
<h3><?php esc_html_e( 'Ultimate Member', 'ultimate-member' ); ?></h3>
<?php }
@@ -309,7 +309,7 @@ if ( ! class_exists( 'User' ) ) {
$style = '';
$user_role = false;
if ( $userdata !== 'add-new-user' ) {
if ( $userdata !== 'add-new-user' && $userdata !== 'add-existing-user' ) {
// Bail if current user cannot edit users
if ( ! current_user_can( 'edit_user', $userdata->ID ) )
return $content;
@@ -320,9 +320,11 @@ if ( ! class_exists( 'User' ) ) {
}
$class = ( $userdata == 'add-existing-user' ) ? 'um_role_existing_selector_wrapper' : 'um_role_selector_wrapper';
ob_start(); ?>
<div id="um_role_selector_wrapper" <?php echo $style ?>>
<div id="<?php echo $class ?>" <?php echo $style ?>>
<table class="form-table">
<tbody>
<tr>