Skip to content

Commit

Permalink
Merge pull request #320 from GM-Alex/next
Browse files Browse the repository at this point in the history
Bump version 2.2.3
  • Loading branch information
GM-Alex authored Feb 13, 2021
2 parents fdf6aa5 + ad375a4 commit e8fb1ea
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 8 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.2",
"version": "2.2.3",
"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.2",
"version": "2.2.3",
"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.2
Stable tag: 2.2.3

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.3 2021/02/13 Fix warning at settings page.
Fix type error for user group handler.

2.2.2 2021/02/13 Fix type error with login form.

2.2.1 2021/02/13 Fix type error with registeredTaxonomy.
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Backend/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private function getTaxonomySettingsForm($taxonomy = MainConfig::DEFAULT_TYPE):
*/
private function isXSendFileAvailable(): bool
{
$content = file_get_contents($this->wordpress->getSiteUrl() . '?testXSendFile');
$content = @file_get_contents($this->wordpress->getSiteUrl() . '?testXSendFile');
$this->fileHandler->removeXSendFileTestFile();

return ($content === 'success');
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.2';
const VERSION = '2.2.3';
const DB_VERSION = '1.6.1';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/UserGroup/UserGroupHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ public function addUserGroup(UserGroup $userGroup)

/**
* Deletes a user group.
* @param int $userGroupId
* @param string|int $userGroupId
* @return bool
* @throws UserGroupTypeException
* @throws Exception
*/
public function deleteUserGroup(int $userGroupId): bool
public function deleteUserGroup($userGroupId): bool
{
$userGroups = $this->getUserGroups();

Expand Down
4 changes: 4 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
class WP_Post_Type {}
}

if (class_exists('\wpdb') === false) {
class wpdb {}
}

if (class_exists('\WP_Widget') === false) {
require_once __DIR__.'/../vendor/johnpbloch/wordpress-core/wp-includes/class-wp-widget.php';
}
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.2
* Version: 2.2.3
* 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 e8fb1ea

Please sign in to comment.