- fixed tooltip "a" tag CSS;

- fixed get_template function '/' to DIRECTORY_SEPARATOR;
- changed loading posts.php template;
This commit is contained in:
nikitasinelnikov
2019-10-17 16:20:48 +03:00
parent 39eb76474e
commit 250b0836c4
5 changed files with 16 additions and 16 deletions
+2 -4
View File
@@ -63,8 +63,7 @@ if ( ! class_exists( 'um\core\User_posts' ) ) {
$count_posts = (int) count_user_posts( um_get_requested_user(), 'post', true );
UM()->shortcodes()->set_args = array( 'posts' => $posts, 'count_posts' => $count_posts );
UM()->shortcodes()->load_template( 'profile/posts' );
UM()->get_template( 'profile/posts', '', array( 'posts' => $posts, 'count_posts' => $count_posts ), true );
}
@@ -118,8 +117,7 @@ if ( ! class_exists( 'um\core\User_posts' ) ) {
$args = apply_filters( 'um_profile_query_make_posts', $args );
$posts = get_posts( $args );
UM()->shortcodes()->set_args = array( 'posts' => $posts );
UM()->shortcodes()->load_template( 'profile/posts' );
UM()->get_template( 'profile/posts', '', array( 'posts' => $posts ), true );
wp_die();
}