From c8ff9dec4a0fffd9ce5db81e188a44ba21cf1df6 Mon Sep 17 00:00:00 2001 From: nikitasinelnikov Date: Fri, 1 Mar 2019 17:08:28 +0200 Subject: [PATCH] - pre-release --- includes/core/class-account.php | 4 ++-- includes/core/class-builtin.php | 2 +- includes/core/class-user-posts.php | 2 -- readme.txt | 3 +++ 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/core/class-account.php b/includes/core/class-account.php index a832d3ae..bc82e29a 100644 --- a/includes/core/class-account.php +++ b/includes/core/class-account.php @@ -226,7 +226,7 @@ if ( ! class_exists( 'um\core\Account' ) ) { $this->init_tabs( $args ); - $this->current_tab = apply_filters( 'um_change_default_tab', $this->current_tab ); + $this->current_tab = apply_filters( 'um_change_default_tab', $this->current_tab, $args ); /** * UM hook @@ -836,4 +836,4 @@ if ( ! class_exists( 'um\core\Account' ) ) { return $classes; } } -} +} \ No newline at end of file diff --git a/includes/core/class-builtin.php b/includes/core/class-builtin.php index 809323a7..b7c73ef1 100644 --- a/includes/core/class-builtin.php +++ b/includes/core/class-builtin.php @@ -1829,4 +1829,4 @@ if ( ! class_exists( 'um\core\Builtin' ) ) { } } -} +} \ No newline at end of file diff --git a/includes/core/class-user-posts.php b/includes/core/class-user-posts.php index 9b86ce95..27284f9d 100644 --- a/includes/core/class-user-posts.php +++ b/includes/core/class-user-posts.php @@ -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 ); diff --git a/readme.txt b/readme.txt index e5b9b613..8bb65a15 100644 --- a/readme.txt +++ b/readme.txt @@ -141,6 +141,9 @@ The plugin works with popular caching plugins by automatically excluding Ultimat * Bugfixes: - Fixed Edit Row settings - Fixed save profile fields with 0 values + - Fixed upload photo base URL for Windows servers + - Fixed displaying user Posts at Profile/Posts tab + - Fixed unique filename issue, upload avatar with high case extension = 2.0.39: February 11, 2019 =