mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
- return from the function update_usermeta when old value the same as new;
This commit is contained in:
@@ -134,6 +134,10 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
|
||||
$old = get_user_meta( $object_id, $meta_key, true );
|
||||
|
||||
if ( $old === $_meta_value ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// deduct old transient count
|
||||
$count = get_transient( "um_count_users_{$old}" );
|
||||
if ( false !== $count ) {
|
||||
|
||||
Reference in New Issue
Block a user