- fixed um_edit_profile_url() function and added $user_id attribute;

- added `disable_restriction_pre_queries` option for backward compatibility with business logic where 404 error isn't good way;
- added `restricted_post_title_replace` option for ability to disable restricted post's title replace
This commit is contained in:
Nikita Sinelnikov
2021-08-25 01:07:09 +03:00
parent 58bbd3cede
commit 9927dab323
6 changed files with 69 additions and 19 deletions
+2
View File
@@ -512,6 +512,7 @@ if ( ! class_exists( 'um\Config' ) ) {
//settings defaults
$this->settings_defaults = array(
'restricted_access_post_metabox' => array( 'post' => 1, 'page' => 1 ),
'disable_restriction_pre_queries' => 0,
'uninstall_on_delete' => 0,
'permalink_base' => 'user_login',
'display_name' => 'full_name',
@@ -543,6 +544,7 @@ if ( ! class_exists( 'um\Config' ) ) {
'access_exclude_uris' => array(),
'home_page_accessible' => 1,
'category_page_accessible' => 1,
'restricted_post_title_replace' => 1,
'restricted_access_post_title' => __( 'Restricted content', 'ultimate-member' ),
'restricted_access_message' => '',
'restricted_blocks' => 0,