Negate that. Fixes #1490. Hat tip: mdawaffe

git-svn-id: http://svn.automattic.com/wordpress/trunk@2731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-07-23 06:29:46 +00:00
parent ba19c859f9
commit bbd789660a
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; global $wpdb;
if ( !is_numeric( $user_id ) ) if ( !is_numeric( $user_id ) )
return false; 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) ) if ( is_array($meta_value) || is_object($meta_value) )
$meta_value = serialize($meta_value); $meta_value = serialize($meta_value);