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