diff --git wp-includes/meta.php wp-includes/meta.php
index 2332d9b5af..c797ce5397 100644
|
|
function update_metadata( $meta_type, $object_id, $meta_key, $meta_value, $prev_ |
207 | 207 | // Compare existing value to new value if no prev value given and the key exists only once. |
208 | 208 | if ( empty( $prev_value ) ) { |
209 | 209 | $old_value = get_metadata( $meta_type, $object_id, $meta_key ); |
210 | | if ( count( $old_value ) == 1 ) { |
| 210 | if ( is_array( $old_value ) && count( $old_value ) === 1 ) { |
211 | 211 | if ( $old_value[0] === $meta_value ) { |
212 | 212 | return false; |
213 | 213 | } |