- return from the function update_usermeta when old value the same as new;

This commit is contained in:
Nikita Sinelnikov
2022-08-12 16:20:14 +03:00
parent 9b74beab8b
commit 69321f0cb1
+4
View File
@@ -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 ) {