From c69f8098f2d0ea0e2b1e3d4cc29990d98e667541 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Sun, 3 Jul 2016 15:34:11 +0800 Subject: [PATCH] Fix access settings --- core/um-actions-access.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/core/um-actions-access.php b/core/um-actions-access.php index b7c8b383..95d4d7e7 100644 --- a/core/um-actions-access.php +++ b/core/um-actions-access.php @@ -237,14 +237,15 @@ $um_post_id = get_option('woocommerce_shop_page_id'); } else if ( - is_category() || - is_archive() || - is_search() || - in_the_loop() || - is_feed() || - is_tax() || - ! get_post_type() || - ! isset( $post->ID ) + is_category() || + is_archive() || + is_search() || + in_the_loop() || + is_feed() || + is_tax() || + ! get_post_type() || + ! isset( $post->ID ) || + is_home() ) { return;