mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed tooltip "a" tag CSS;
- fixed get_template function '/' to DIRECTORY_SEPARATOR; - changed loading posts.php template;
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user