WordPress.org

Make WordPress Core

Changeset 4920


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    } 
Note: See TracChangeset for help on using the changeset viewer.