Skip to content

Commit

Permalink
Bump version 2.2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
GM-Alex committed Mar 8, 2023
1 parent decfe69 commit e154442
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "User Access Manager plugin for Wordpress",
"type": "wordpress-plugin",
"license": "GPL-2.0",
"version": "2.2.19",
"version": "2.2.20",
"authors": [
{
"name": "Alexander Schneider",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "user-access-manager",
"version": "2.2.19",
"version": "2.2.20",
"description": "[![Build Status](https://travis-ci.org/GM-Alex/user-access-manager.svg)](https://travis-ci.org/GM-Alex/user-access-manager)",
"main": "index.js",
"directories": {
Expand Down
4 changes: 3 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: admin, access, member area, members, member, member access, page, pages, post, posts, private, privacy, restrict, user, user access manager, user management
Requires at least: 4.7
Tested up to: 6.1
Stable tag: 2.2.19
Stable tag: 2.2.20

With the "User Access Manager"-plugin you can manage the access to your posts, pages and files.

Expand Down Expand Up @@ -63,6 +63,8 @@ Here you found the changes in each version.

Version Date Changes

2.2.20 2023/03/08 Fix warning

2.2.19 2022/11/18 Add try out link

2.2.18 2022/11/14 Fix issue with label id. Thanks to elbakkali
Expand Down
2 changes: 1 addition & 1 deletion src/UserAccessManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
*/
class UserAccessManager
{
const VERSION = '2.2.19';
const VERSION = '2.2.20';
const DB_VERSION = '1.6.1';

/**
Expand Down
3 changes: 2 additions & 1 deletion src/UserGroup/DynamicUserGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public function getName(): string
$this->name = TXT_UAM_ADD_DYNAMIC_NOT_LOGGED_IN_USERS;
} elseif ($this->type === self::USER_TYPE) {
$userData = $this->wordpress->getUserData($this->id);
$this->name = TXT_UAM_USER . ": {$userData->display_name} ($userData->user_login)";
$userName = $userData !== false ? "$userData->display_name ($userData->user_login)" : '';
$this->name = TXT_UAM_USER . ": $userName";
} elseif ($this->type === self::ROLE_TYPE) {
$roles = $this->wordpress->getRoles()->roles;
$this->name = TXT_UAM_ROLE . ': ';
Expand Down
2 changes: 1 addition & 1 deletion user-access-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: User Access Manager
* Plugin URI: https://wordpress.org/plugins/user-access-manager/
* Author URI: https://twitter.com/GM_Alex
* Version: 2.2.19
* Version: 2.2.20
* Requires PHP: 7.2
* Author: Alexander Schneider
* Description: Manage the access to your posts, pages, categories and files.
Expand Down

0 comments on commit e154442

Please sign in to comment.