mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- 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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user