Perform strict equality comparison. Props shawnparker. fixes #13350 for 3.1

git-svn-id: http://svn.automattic.com/wordpress/trunk@15389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-07-12 15:28:31 +00:00
parent 98ea55a020
commit 3a5154435e
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v
if ( empty($prev_value) ) {
$old_value = get_metadata($meta_type, $object_id, $meta_key);
if ( count($old_value) == 1 ) {
if ( $old_value[0] == $meta_value )
if ( $old_value[0] === $meta_value )
return false;
}
}