From 1e813076af54ee395951ab4b0477feef442e1f6e Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Fri, 11 Dec 2015 12:45:31 +0800 Subject: [PATCH] Fixed category post protect content force login in homepage This restriction should not apply in home/front-page. --- core/um-actions-access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-access.php b/core/um-actions-access.php index 74c595c0..5470aff9 100644 --- a/core/um-actions-access.php +++ b/core/um-actions-access.php @@ -63,7 +63,7 @@ add_action('um_access_category_settings','um_access_category_settings'); function um_access_category_settings() { global $post, $wp_query, $ultimatemember; - if ( is_single() || get_the_category() ) { + if ( is_single() || get_the_category() && ! is_front_page() && ! is_home() ) { $categories = get_the_category();