summaryrefslogtreecommitdiffstats
path: root/wp-includes/user.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-07 10:17:25 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-07 10:17:25 +0000
commite7b243973132b555e66a0517e25232ba213bc35e (patch)
treeff9d04034493cc544d1064e56a1c8b8265d63b3f /wp-includes/user.php
parentf57c5009b529dcc2494fc719f605ef64b7f9b4c7 (diff)
downloadwordpress-mu-e7b243973132b555e66a0517e25232ba213bc35e.tar.gz
wordpress-mu-e7b243973132b555e66a0517e25232ba213bc35e.tar.xz
wordpress-mu-e7b243973132b555e66a0517e25232ba213bc35e.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@819 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/user.php')
-rw-r--r--wp-includes/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/user.php b/wp-includes/user.php
index e1f9770..4d202a6 100644
--- a/wp-includes/user.php
+++ b/wp-includes/user.php
@@ -81,7 +81,7 @@ function get_usermeta( $user_id, $meta_key = '') {
$user_id = (int) $user_id;
if ( !empty($meta_key) ) {
- $meta_key = preg_replace('|a-z0-9_|i', '', $meta_key);
+ $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
$metas = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->usermeta WHERE user_id = '$user_id' AND meta_key = '$meta_key'");
} else {
$metas = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->usermeta WHERE user_id = '$user_id'");