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

git-svn-id: https://develop.svn.wordpress.org/trunk@15389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-07-12 15:28:31 +00:00
parent 63503c5022
commit d079129f86
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;
}
}