Ticket #15559: 15559.diff
File 15559.diff, 814 bytes (added by , 14 years ago) |
---|
-
deprecated.php
2296 2296 else 2297 2297 $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) ); 2298 2298 2299 wp_cache_delete($user_id, 'users'); 2299 clean_user_cache( $user_id ); 2300 wp_cache_delete( $user_id, 'user_meta' ); 2300 2301 2301 2302 if ( $cur && $cur->umeta_id ) 2302 2303 do_action( 'deleted_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); … … 2403 2404 else 2404 2405 return false; 2405 2406 2406 wp_cache_delete($user_id, 'users'); 2407 clean_user_cache( $user_id ); 2408 wp_cache_delete( $user_id, 'user_meta' ); 2407 2409 2408 2410 if ( !$cur ) 2409 2411 do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value );