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:
parent
ba19c859f9
commit
bbd789660a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue