From d83d39e7432379292791a62385ddafe3134f256c Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Thu, 9 Jun 2016 10:39:46 +0800 Subject: [PATCH] Fix query of pages --- core/um-query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/um-query.php b/core/um-query.php index 8823b7ae..7fe8b671 100644 --- a/core/um-query.php +++ b/core/um-query.php @@ -22,7 +22,8 @@ class UM_Query { } $count_pages = wp_count_posts('page'); - if ( $count_pages > 300 ){ + + if ( $count_pages->publish > 300 ){ return 'reached_maximum_limit'; }