mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- release 2.0.23
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
function um_upgrade_privacy2023() {
|
||||
um_maybe_unset_time_limit();
|
||||
|
||||
global $wpdb;
|
||||
|
||||
$wpdb->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' ) ) );
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'privacy2023' => 'privacy2023',
|
||||
);
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
<?php ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery( document ).ready( function() {
|
||||
//upgrade styles
|
||||
um_add_upgrade_log( '<?php echo esc_js( __( 'Upgrade Privacy Settings...', 'ultimate-member' ) ) ?>' );
|
||||
|
||||
jQuery.ajax({
|
||||
url: '<?php echo admin_url( 'admin-ajax.php' ) ?>',
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
action: 'um_privacy2023'
|
||||
},
|
||||
success: function( response ) {
|
||||
if ( typeof response.data != 'undefined' ) {
|
||||
um_add_upgrade_log( response.data.message );
|
||||
//switch to the next package
|
||||
um_run_upgrade();
|
||||
} else {
|
||||
um_wrong_ajax();
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
um_something_wrong();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -553,7 +553,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->mobile();
|
||||
$this->external_integrations();
|
||||
$this->gdpr();
|
||||
$this->uploader();
|
||||
//$this->uploader();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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 ) ) {
|
||||
|
||||
+6
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user