Skip to content

Commit

Permalink
Bump version 2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
GM-Alex committed Feb 13, 2021
1 parent ad375a4 commit 5d85222
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# User Access Manager Plugin for Wordpress
[![Build Status](https://travis-ci.org/GM-Alex/user-access-manager.svg)](https://travis-ci.org/GM-Alex/user-access-manager)
![Tests](https://github.com/GM-Alex/user-access-manager/workflows/Tests/badge.svg)

If you are a normal user please visit https://wordpress.org/plugins/user-access-manager/

Expand Down
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.3",
"version": "2.2.4",
"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.3",
"version": "2.2.4",
"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
5 changes: 4 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: 5.6
Stable tag: 2.2.3
Stable tag: 2.2.4

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

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

Version Date Changes

2.2.4 2021/02/13 Fix type error for user object controller.
Fix type error for the wordpress wrapper.

2.2.3 2021/02/13 Fix warning at settings page.
Fix type error for user group handler.

Expand Down
8 changes: 4 additions & 4 deletions src/Controller/Backend/UserObjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ public function addUserColumnsHeader(array $defaults): array

/**
* The function for the manage_users_custom_column action.
* @param string $return The normal return value.
* @param null|string $return The normal return value.
* @param string $columnName The column name.
* @param integer $id The id.
* @return string|null
* @throws UserGroupTypeException
* @throws UserGroupTypeException
*/
public function addUserColumn(string $return, string $columnName, int $id): ?string
public function addUserColumn(?string $return, string $columnName, int $id): ?string
{
if ($columnName === self::COLUMN_NAME) {
$this->setObjectInformation(ObjectHandler::GENERAL_USER_OBJECT_TYPE, $id);
Expand Down Expand Up @@ -82,9 +82,9 @@ public function saveUserData(int $userId)

/**
* The function for the delete_user action.
* @param integer $userId The user id.
* @param int|string $userId The user id.
*/
public function removeUserData(int $userId)
public function removeUserData($userId)
{
$this->removeObjectData(ObjectHandler::GENERAL_USER_OBJECT_TYPE, $userId);
}
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.3';
const VERSION = '2.2.4';
const DB_VERSION = '1.6.1';

/**
Expand Down
11 changes: 4 additions & 7 deletions src/Wrapper/Wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ public function getPost($id, $output = OBJECT, $filter = 'raw')
}

/**
* @param string $postType
* @param int|string $postType
* @return null|WP_Post_Type
* @see \get_post_type_object()
*/
public function getPostTypeObject(string $postType): ?WP_Post_Type
public function getPostTypeObject($postType): ?WP_Post_Type
{
return get_post_type_object($postType);
}
Expand Down Expand Up @@ -234,9 +234,6 @@ public function getTerm($id, string $taxonomy = '', string $output = OBJECT, str
public function dbDelta($queries = '', $execute = true): array
{
if (function_exists('\dbDelta') === false) {
/**
* @noinspection PhpIncludeInspection
*/
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
}

Expand All @@ -245,10 +242,10 @@ public function dbDelta($queries = '', $execute = true): array

/**
* @param integer $blogId
* @return int|true
* @return int|string
* @see \switch_to_blog()
*/
public function switchToBlog(int $blogId)
public function switchToBlog($blogId)
{
if (function_exists('\switch_to_blog') === true) {
return switch_to_blog($blogId);
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.3
* Version: 2.2.4
* Author: Alexander Schneider
* Description: Manage the access to your posts, pages, categories and files.
* Text Domain: user-access-manager
Expand Down

0 comments on commit 5d85222

Please sign in to comment.