mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 21:53:43 +09:00
Fix query of pages
This commit is contained in:
+2
-1
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user