mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
- 2.2.1 prepare to the release;
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user