- 2.2.1 prepare to the release;

This commit is contained in:
Nikita Sinelnikov
2021-07-30 14:20:11 +03:00
parent 250a4ded5c
commit c765d03ce4
7 changed files with 34 additions and 14 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ GNU Version 2 or Any Later Version
## Releases
[Official Release Version: 2.2.0](https://github.com/ultimatemember/ultimatemember/releases/tag/2.2.0).
[Official Release Version: 2.2.1](https://github.com/ultimatemember/ultimatemember/releases/tag/2.2.1).
## Changelog
+3
View File
@@ -1373,6 +1373,9 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
case 'textarea':
$sanitized[ $k ] = sanitize_textarea_field( $v );
break;
case 'wp_kses':
$sanitized[ $k ] = wp_kses_post( $v );
break;
case 'key':
if ( is_array( $v ) ) {
$sanitized[ $k ] = array_map( 'sanitize_key', $v );
+6 -6
View File
@@ -416,7 +416,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_access_hide_from_queries',
'type' => 'checkbox',
'label' => __( 'Would you like to display 404 error on term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'label' => __( 'Would you like to display 404 error on the term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'description' => __( 'Recommended to be enabled. Restricted term\'s archive page and all terms\' posts will be hidden by exclusion from WP Query. The safest and most effective method that hides post and its comments from all requests, RSS feeds, etc. on your site', 'ultimate-member' ),
'value' => 1,
'conditional' => array( '_um_accessible', '!=', '0' ),
@@ -424,7 +424,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_noaccess_action',
'type' => 'select',
'label' => __( 'What happens when users without access tries to view the term\'s post?', 'ultimate-member' ),
'label' => __( 'What happens when users without access try to view the term\'s post?', 'ultimate-member' ),
'description' => __( 'Action when users without access tries to view the term\'s post', 'ultimate-member' ),
'value' => '0',
'options' => array(
@@ -436,8 +436,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_restrict_by_custom_message',
'type' => 'select',
'label' => __( 'Would you like to use the global default message or apply a custom message to this term\'s post?', 'ultimate-member' ),
'description' => __( 'Action when users without access tries to view the term\'s post', 'ultimate-member' ),
'label' => __( 'Restricted access message type', 'ultimate-member' ),
'description' => __( 'Would you like to use the global default message or apply a custom message to this term\'s post?', 'ultimate-member' ),
'value' => '0',
'options' => array(
'0' => __( 'Global default message', 'ultimate-member' ),
@@ -568,7 +568,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_access_hide_from_queries',
'type' => 'checkbox',
'label' => __( 'Would you like to display 404 error on term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'label' => __( 'Would you like to display 404 error on the term\'s archive page and terms\' posts single pages when users haven\'t access?', 'ultimate-member' ),
'description' => __( 'Recommended to be enabled. Restricted term\'s archive page and all terms\' posts will be hidden by exclusion from WP Query. The safest and most effective method that hides post and its comments from all requests, RSS feeds, etc. on your site', 'ultimate-member' ),
'value' => ! empty( $data['_um_access_hide_from_queries'] ) ? $data['_um_access_hide_from_queries'] : '',
'conditional' => array( '_um_accessible', '!=', '0' ),
@@ -576,7 +576,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
array(
'id' => '_um_noaccess_action',
'type' => 'select',
'label' => __( 'What happens when users without access tries to view the term\'s post?', 'ultimate-member' ),
'label' => __( 'What happens when users without access try to view the term\'s post?', 'ultimate-member' ),
'description' => __( 'Action when users without access tries to view the term\'s post', 'ultimate-member' ),
'value' => ! empty( $data['_um_noaccess_action'] ) ? $data['_um_noaccess_action'] : '0',
'options' => array(
@@ -89,7 +89,7 @@ if ( ! defined( 'ABSPATH' ) ) {
array(
'id' => '_um_noaccess_action',
'type' => 'select',
'label' => __( 'What happens when users without access tries to view the post?', 'ultimate-member' ),
'label' => __( 'What happens when users without access try to view the post?', 'ultimate-member' ),
'tooltip' => __( 'Action when users without access tries to view the post', 'ultimate-member' ),
'value' => ! empty( $data['_um_noaccess_action'] ) ? $data['_um_noaccess_action'] : 0,
'options' => array(
+11 -3
View File
@@ -850,12 +850,20 @@ if ( ! class_exists( 'um\core\Access' ) ) {
* Replace titles of restricted posts
*
* @param string $title
* @param int $id
* @param int|null $id
*
* @return string
*/
function filter_restricted_post_title( $title, $id ) {
if ( is_numeric( $id ) && $this->is_restricted( $id ) ) {
function filter_restricted_post_title( $title, $id = null ) {
if ( ! isset( $id ) ) {
return $title;
}
if ( ! is_numeric( $id ) ) {
$id = absint( $id );
}
if ( $this->is_restricted( $id ) ) {
$restricted_global_title = UM()->options()->get( 'restricted_access_post_title' );
$title = stripslashes( $restricted_global_title );
}
+11 -2
View File
@@ -7,7 +7,7 @@ Tags: community, member, membership, user-profile, user-registration
Requires PHP: 5.6
Requires at least: 5.0
Tested up to: 5.8
Stable tag: 2.2.0
Stable tag: 2.2.1
License: GNU Version 2 or Any Later Version
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
@@ -157,11 +157,20 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
= 2.2.1: August 2, 2021 =
* Enhancements:
- Added: Extended callback functions for sanitizing data in wp-admin forms fields
- Added: Restricted Access Post Title setting
* Bugfixes:
- Fixed: Restriction settings and related queries (comments, archives, recent posts, post navigation, etc.)
- Fixed: Sanitizing `max-width` value of the Login/Registration/Profile form settings
- Fixed: Sanitizing `in_group` field's data
- Fixed: Restriction settings related with `Hide in queries`
- Fixed: Restriction settings and performance issues on some installations
- Fixed: Restriction settings and CPU performance issues on some installations
- Fixed: Form meta settings and handling them on PHP8 installations
- Fixed: Make it clearer the restriction settings form labels
= 2.2.0: July 20, 2021 =
+1 -1
View File
@@ -3,7 +3,7 @@
Plugin Name: Ultimate Member
Plugin URI: http://ultimatemember.com/
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
Version: 2.2.1-rc.1
Version: 2.2.1
Author: Ultimate Member
Author URI: http://ultimatemember.com/
Text Domain: ultimate-member