Negate that. Fixes #1490. Hat tip: mdawaffe

git-svn-id: https://develop.svn.wordpress.org/trunk@2731 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-07-23 06:29:46 +00:00
parent b81fef690d
commit b8f6638196
1 changed files with 1 additions and 1 deletions

View File

@ -1982,7 +1982,7 @@ function update_usermeta( $user_id, $meta_key, $meta_value ) {
global $wpdb;
if ( !is_numeric( $user_id ) )
return false;
$meta_key = preg_replace('|a-z0-9_|i', '', $meta_key);
$meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
if ( is_array($meta_value) || is_object($meta_value) )
$meta_value = serialize($meta_value);