Make WordPress Core

Ticket #20712: 20712.patch

File 20712.patch, 529 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/option.php

     
    229229        $newvalue = apply_filters( 'pre_update_option_' . $option, $newvalue, $oldvalue );
    230230
    231231        // If the new and old values are the same, no need to update.
    232         if ( $newvalue === $oldvalue )
     232        if ( $newvalue === $oldvalue || $newvalue === sanitize_option( $option, $oldvalue ) )
    233233                return false;
    234234
    235235        if ( false === $oldvalue )