From bcd273445daef1320ad5b56781a29e8adf40f0a7 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Thu, 9 Aug 2018 12:40:24 +0300 Subject: [PATCH 1/6] - social activity dependencies; --- includes/class-dependencies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-dependencies.php b/includes/class-dependencies.php index 0785ceb9..731a4487 100644 --- a/includes/class-dependencies.php +++ b/includes/class-dependencies.php @@ -48,7 +48,7 @@ if ( ! class_exists( 'um\Dependencies' ) ) { 'profile-completeness' => '2.0.1', 'recaptcha' => '2.0.2', 'reviews' => '2.0.3', - 'social-activity' => '2.0.1', + 'social-activity' => '2.0.6', 'social-login' => '2.0.1', 'terms-conditions' => '2.0', 'user-location' => '2.0', From 812abf5326ac7c7bad8cf604a290696d91e1c6c7 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Thu, 9 Aug 2018 13:38:05 +0300 Subject: [PATCH 2/6] - changed readme; --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 1e77de11..291954b8 100644 --- a/readme.txt +++ b/readme.txt @@ -131,7 +131,7 @@ 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.22: August 10, 2018 = += 2.0.22: August 9, 2018 = * Enhancements: - Added an ability to filter user's profile slug "um_change_user_profile_slug" From e4ac4cda8f13a9ff4883623a746389c444f343f7 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Fri, 10 Aug 2018 11:34:09 +0300 Subject: [PATCH 3/6] - privacy account fix; --- .../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 +++++++++++++++++++ ultimate-member.php | 2 +- 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 includes/admin/core/packages/2.0.23/functions.php create mode 100644 includes/admin/core/packages/2.0.23/hooks.php create mode 100644 includes/admin/core/packages/2.0.23/init.php diff --git a/includes/admin/core/packages/2.0.23/functions.php b/includes/admin/core/packages/2.0.23/functions.php new file mode 100644 index 00000000..979e767a --- /dev/null +++ b/includes/admin/core/packages/2.0.23/functions.php @@ -0,0 +1,29 @@ +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 new file mode 100644 index 00000000..803b37c8 --- /dev/null +++ b/includes/admin/core/packages/2.0.23/hooks.php @@ -0,0 +1,5 @@ + '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 new file mode 100644 index 00000000..e577f39a --- /dev/null +++ b/includes/admin/core/packages/2.0.23/init.php @@ -0,0 +1,29 @@ + + + \ No newline at end of file diff --git a/ultimate-member.php b/ultimate-member.php index 91240abb..c64d7c15 100644 --- a/ultimate-member.php +++ b/ultimate-member.php @@ -3,7 +3,7 @@ Plugin Name: Ultimate Member Plugin URI: http://ultimatemember.com/ Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress -Version: 2.0.22 +Version: 2.0.23 Author: Ultimate Member Author URI: http://ultimatemember.com/ Text Domain: ultimate-member From c3ffb29354072a8f5d2d4aff006a0c8b7ab44313 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Fri, 10 Aug 2018 15:11:48 +0300 Subject: [PATCH 4/6] - 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: From 6e129bdfff264bb9c447b299c288e5441054a8bc Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Mon, 13 Aug 2018 09:28:06 +0300 Subject: [PATCH 5/6] - upgrade readme; - fixed small notice in 2.0.0 upgrade; --- includes/admin/core/packages/2.0-beta1/user_roles.php | 7 ++++++- readme.txt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/admin/core/packages/2.0-beta1/user_roles.php b/includes/admin/core/packages/2.0-beta1/user_roles.php index df228118..17fb8597 100644 --- a/includes/admin/core/packages/2.0-beta1/user_roles.php +++ b/includes/admin/core/packages/2.0-beta1/user_roles.php @@ -133,7 +133,11 @@ if ( ! empty( $um_roles ) ) { } } } elseif ( '_um_profilec_upgrade_role' == $metakey ) { - $metadata = $roles_associations[ $metadata ]; + if ( isset( $roles_associations[ $metadata ] ) ) { + $metadata = $roles_associations[ $metadata ]; + } else { + $metadata = ''; + } } $role_meta[ $metakey ] = $metadata; @@ -149,6 +153,7 @@ update_option( 'um_roles', $role_keys ); global $wp_roles, $wp_version; if ( version_compare( $wp_version, '4.9', '<' ) ) { $wp_roles->_init(); + $wp_roles->reinit(); } elseif ( method_exists( $wp_roles, 'for_site' ) ) { $wp_roles->for_site( get_current_blog_id() ); } diff --git a/readme.txt b/readme.txt index 20e383af..f30e90c0 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Plugin URI: https://ultimatemember.com/ Contributors: ultimatemember, champsupertramp, nsinelnikov Donate link: Tags: community, member, membership, user-profile, user-registration -Requires at least: 4.1 +Requires at least: 4.7 Tested up to: 4.9 Stable tag: 2.0.23 License: GNU Version 2 or Any Later Version From dd03b4f325629b2c58de3571cae1534a45ed88ee Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Mon, 13 Aug 2018 14:42:49 +0300 Subject: [PATCH 6/6] - filter for template loading; --- includes/core/class-shortcodes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/core/class-shortcodes.php b/includes/core/class-shortcodes.php index 315e3463..e3f40d74 100644 --- a/includes/core/class-shortcodes.php +++ b/includes/core/class-shortcodes.php @@ -265,6 +265,8 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) { unset( $args['theme_file'] ); unset( $args['tpl'] ); + $args = apply_filters( 'um_template_load_args', $args, $tpl ); + extract( $args ); }