Ticket #11254: deprecated2.diff
File deprecated2.diff, 931 bytes (added by , 15 years ago) |
---|
-
deprecated.php
2300 2300 2301 2301 if ( $cur && $cur->umeta_id ) 2302 2302 do_action( 'deleted_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); 2303 2304 // replace the global current_user with new updated data 2305 $GLOBALS['current_user'] = new WP_User($user_id); 2306 // to populate the old global variables with new meta specially $userdata 2307 setup_userdata(); 2303 2308 2304 2309 return true; 2305 2310 } … … 2404 2409 return false; 2405 2410 2406 2411 wp_cache_delete($user_id, 'users'); 2412 2413 // replace the global current_user with new updated data 2414 $GLOBALS['current_user'] = new WP_User($user_id); 2415 // to populate the old global variables with new meta specially $userdata 2416 setup_userdata(); 2407 2417 2408 2418 if ( !$cur ) 2409 2419 do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value );