- pre-release

This commit is contained in:
nikitasinelnikov
2019-03-01 17:08:28 +02:00
parent 1fbf5b5dd6
commit c8ff9dec4a
4 changed files with 6 additions and 5 deletions
-2
View File
@@ -61,8 +61,6 @@ if ( ! class_exists( 'um\core\User_posts' ) ) {
$args = apply_filters( 'um_profile_query_make_posts', $args );
$posts = get_posts( $args );
//$count_posts = wp_count_posts();
//$count_posts = ! empty( $count_posts->publish ) ? $count_posts->publish : 0;
$count_posts = (int) count_user_posts( um_get_requested_user(), 'post', true );
UM()->shortcodes()->set_args = array( 'posts' => $posts, 'count_posts' => $count_posts );