- fixed problem with multisite;

- fixed problem with members directory search;
- fixed admin bar;
This commit is contained in:
yura_nalivaiko
2018-05-31 13:14:21 +03:00
parent d4188290d3
commit 01630c9385
4 changed files with 42 additions and 23 deletions
+2 -5
View File
@@ -22,11 +22,8 @@ add_action( 'init', 'um_block_wpadmin_by_user_role', 99 );
* @return bool
*/
function um_control_admin_bar( $content ) {
if ( is_user_logged_in() ) {
if ( um_user( 'can_not_see_adminbar' ) ) {
return false;
}
return true;
if ( is_user_logged_in() && um_user( 'can_not_see_adminbar' ) ) {
return false;
}
return $content;