From c3ffb29354072a8f5d2d4aff006a0c8b7ab44313 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Fri, 10 Aug 2018 15:11:48 +0300 Subject: [PATCH] - release 2.0.23 --- README.md | 4 +-- .../admin/core/packages/2.0.23/functions.php | 29 ------------------- includes/admin/core/packages/2.0.23/hooks.php | 5 ---- includes/admin/core/packages/2.0.23/init.php | 29 ------------------- includes/class-init.php | 2 +- includes/core/class-user.php | 2 +- readme.txt | 7 ++++- 7 files changed, 10 insertions(+), 68 deletions(-) delete mode 100644 includes/admin/core/packages/2.0.23/functions.php delete mode 100644 includes/admin/core/packages/2.0.23/hooks.php delete mode 100644 includes/admin/core/packages/2.0.23/init.php diff --git a/README.md b/README.md index da31a11a..7f6f208d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Ultimate Member is the #1 user profile & membership plugin for WordPress. The pl | Latest Version |Requires at least|Stable Tag| | :------------: |:------------:|:------------:| -| 2.0.22 | WordPress 4.9 or higher| 2.0.22 | +| 2.0.23 | WordPress 4.9 or higher| 2.0.23 | Features of the plugin include: @@ -48,7 +48,7 @@ GNU Version 2 or Any Later Version Releases ==================== -[Official Release Version: 2.0.22](https://github.com/ultimatemember/ultimatemember/releases/tag/2.0.22). +[Official Release Version: 2.0.23](https://github.com/ultimatemember/ultimatemember/releases/tag/2.0.23). [Official Release Version: 1.3.88](https://github.com/ultimatemember/ultimatemember/releases). diff --git a/includes/admin/core/packages/2.0.23/functions.php b/includes/admin/core/packages/2.0.23/functions.php deleted file mode 100644 index 979e767a..00000000 --- a/includes/admin/core/packages/2.0.23/functions.php +++ /dev/null @@ -1,29 +0,0 @@ -query( $wpdb->prepare( - "UPDATE {$wpdb->usermeta} - SET meta_value = CASE - WHEN meta_value = %s THEN 'Everyone' - WHEN meta_value = %s THEN 'Only me' - WHEN meta_value = %s THEN 'followed' - WHEN meta_value = %s THEN 'follower' - WHEN meta_value = %s THEN 'friends' - END CASE - WHERE meta_key = 'profile_privacy'", - __( 'Everyone', 'ultimate-member' ), - __( 'Only me', 'ultimate-member' ), - __( 'Only people I follow can view my profile', 'um-followers' ), - __( 'Followers', 'um-followers' ), - __( 'Friends only', 'um-friends' ) - ) ); - - UM()->user()->remove_cache_all_users(); - - update_option( 'um_last_version_upgrade', '2.0.23' ); - - wp_send_json_success( array( 'message' => __( 'Privacy Settings was upgraded successfully', 'ultimate-member' ) ) ); -} \ No newline at end of file diff --git a/includes/admin/core/packages/2.0.23/hooks.php b/includes/admin/core/packages/2.0.23/hooks.php deleted file mode 100644 index 803b37c8..00000000 --- a/includes/admin/core/packages/2.0.23/hooks.php +++ /dev/null @@ -1,5 +0,0 @@ - 'privacy2023', -); \ No newline at end of file diff --git a/includes/admin/core/packages/2.0.23/init.php b/includes/admin/core/packages/2.0.23/init.php deleted file mode 100644 index e577f39a..00000000 --- a/includes/admin/core/packages/2.0.23/init.php +++ /dev/null @@ -1,29 +0,0 @@ - - - \ No newline at end of file diff --git a/includes/class-init.php b/includes/class-init.php index 8f7d66dc..f7673b66 100644 --- a/includes/class-init.php +++ b/includes/class-init.php @@ -553,7 +553,7 @@ if ( ! class_exists( 'UM' ) ) { $this->mobile(); $this->external_integrations(); $this->gdpr(); - $this->uploader(); + //$this->uploader(); } diff --git a/includes/core/class-user.php b/includes/core/class-user.php index e82e5e4d..57eb66a4 100644 --- a/includes/core/class-user.php +++ b/includes/core/class-user.php @@ -1660,7 +1660,7 @@ if ( ! class_exists( 'um\core\User' ) ) { * } * ?> */ - $changes = apply_filters('um_before_update_profile', $changes, $this->id ); + $changes = apply_filters( 'um_before_update_profile', $changes, $args['ID'] ); foreach ( $changes as $key => $value ) { if ( ! in_array( $key, $this->update_user_keys ) ) { diff --git a/readme.txt b/readme.txt index 291954b8..20e383af 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Donate link: Tags: community, member, membership, user-profile, user-registration Requires at least: 4.1 Tested up to: 4.9 -Stable tag: 2.0.22 +Stable tag: 2.0.23 License: GNU Version 2 or Any Later Version License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -131,6 +131,11 @@ The plugin works with popular caching plugins by automatically excluding Ultimat = Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin = += 2.0.23: August 10, 2018 = + +* Bugfixes: + - Fixed File/Image uploader + = 2.0.22: August 9, 2018 = * Enhancements: