WordPress.org

Make WordPress Core

Changeset 15390


Ignore:
Timestamp:
07/12/10 15:28:54 (4 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/meta.php

    r14564 r15390  
    114114        $old_value = get_metadata($meta_type, $object_id, $meta_key); 
    115115        if ( count($old_value) == 1 ) { 
    116             if ( $old_value[0] == $meta_value ) 
     116            if ( $old_value[0] === $meta_value ) 
    117117                return false; 
    118118        } 
Note: See TracChangeset for help on using the changeset viewer.