From e729765dcaaf69a1579a399b0dc0d56f7bc19f05 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 29 Jan 2006 00:21:48 +0000 Subject: [PATCH] Allow empty usermeta fields. Props David House. fixes #2341 git-svn-id: https://develop.svn.wordpress.org/trunk@3494 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c751236058..7140894ed2 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2220,9 +2220,6 @@ function update_usermeta( $user_id, $meta_key, $meta_value ) { $meta_value = serialize($meta_value); $meta_value = trim( $meta_value ); - if ( '' == $meta_value ) - return false; - $cur = $wpdb->get_row("SELECT * FROM $wpdb->usermeta WHERE user_id = '$user_id' AND meta_key = '$meta_key'"); if ( !$cur ) { $wpdb->query("INSERT INTO $wpdb->usermeta ( user_id, meta_key, meta_value )