diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-25 08:05:45 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-25 08:05:45 +0000 |
| commit | 6a0fae2afb9614d0e85ea1838611c77922b752ae (patch) | |
| tree | 72bf1cc1fc6e0745b94ee5164bcccc24063817a5 /wp-inst/wp-includes/functions.php | |
| parent | 741bb24c7abd93a832797dca5159457912a55901 (diff) | |
Merge changes from WP Core.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@73 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
| -rw-r--r-- | wp-inst/wp-includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php index 29148cb..c9489f2 100644 --- a/wp-inst/wp-includes/functions.php +++ b/wp-inst/wp-includes/functions.php @@ -1983,7 +1983,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); |
