From b8f6638196cc9ee8e2854718e55652a751c01426 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sat, 23 Jul 2005 06:29:46 +0000 Subject: [PATCH] Negate that. Fixes #1490. Hat tip: mdawaffe git-svn-id: https://develop.svn.wordpress.org/trunk@2731 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 0b18a4c5f2..e8391dca4d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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);