mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed email notifications integration;
- fixed small notices;
This commit is contained in:
@@ -296,12 +296,12 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->register();
|
||||
$this->user_posts();
|
||||
$this->access();
|
||||
$this->mail();
|
||||
$this->members();
|
||||
$this->logout();
|
||||
}
|
||||
|
||||
//common includes
|
||||
$this->mail();
|
||||
$this->rest_api();
|
||||
$this->shortcodes();
|
||||
$this->roles();
|
||||
|
||||
@@ -148,7 +148,7 @@ if ( ! class_exists( 'Access' ) ) {
|
||||
|
||||
$restricted_posts = um_get_option( 'restricted_access_post_metabox' );
|
||||
|
||||
if ( ! empty( $restricted_posts[ $post->post_type ] ) ) {
|
||||
if ( ! empty( $post->post_type ) && ! empty( $restricted_posts[ $post->post_type ] ) ) {
|
||||
$restriction = get_post_meta( $post->ID, 'um_content_restriction', true );
|
||||
|
||||
if ( ! empty( $restriction['_um_custom_access_settings'] ) ) {
|
||||
|
||||
@@ -14,7 +14,7 @@ if ( ! class_exists( 'Mail' ) ) {
|
||||
|
||||
//mandrill compatibility
|
||||
add_filter( 'mandrill_nl2br', array( &$this, 'mandrill_nl2br' ) );
|
||||
add_action( 'plugins_loaded', array( &$this, 'init_paths' ) );
|
||||
add_action( 'plugins_loaded', array( &$this, 'init_paths' ), 99 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user