Fixed category post protect content force login in homepage

This restriction should not apply in home/front-page.
This commit is contained in:
champsupertramp
2015-12-11 12:45:31 +08:00
parent 01d3e3bff7
commit 1e813076af
+1 -1
View File
@@ -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();