Changeset 4920

Show
Ignore:
Timestamp:
02/23/07 00:49:37 (2 years ago)
Author:
ryan
Message:

Use === to compare option values. Props roscohead and Viper007Bond. fixes #3394

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r4908 r4920  
    310310    // If the new and old values are the same, no need to update. 
    311311    $oldvalue = get_option($option_name); 
    312     if ( $newvalue == $oldvalue ) { 
     312    if ( $newvalue === $oldvalue ) { 
    313313        return false; 
    314314    }