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:
parent
98ea55a020
commit
3a5154435e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue