Fix query of pages

This commit is contained in:
champsupertramp
2016-06-09 10:39:46 +08:00
parent 1e30d874d0
commit d83d39e743
+2 -1
View File
@@ -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';
}