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:
parent
63503c5022
commit
d079129f86
@ -113,7 +113,7 @@ function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v
|
|||||||
if ( empty($prev_value) ) {
|
if ( empty($prev_value) ) {
|
||||||
$old_value = get_metadata($meta_type, $object_id, $meta_key);
|
$old_value = get_metadata($meta_type, $object_id, $meta_key);
|
||||||
if ( count($old_value) == 1 ) {
|
if ( count($old_value) == 1 ) {
|
||||||
if ( $old_value[0] == $meta_value )
|
if ( $old_value[0] === $meta_value )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user