WordPress.org

Make WordPress Core

Ticket #13836: 13836.patch

File 13836.patch, 1.0 KB (added by Viper007Bond, 8 years ago)
  • wp-includes/functions.php

     
    469469 *
    470470 * @uses apply_filters() Calls 'pre_update_option_$option' hook to allow overwriting the
    471471 *      option value to be stored.
     472 * @uses apply_filters() Calls 'pre_update_option' hook to allow overwriting the option
     473 *      value to be stored. $option is passed as one of the arguments.
    472474 * @uses do_action() Calls 'update_option' hook before updating the option.
    473475 * @uses do_action() Calls 'update_option_$option' and 'updated_option' hooks on success.
    474476 *
     
    491493        $newvalue = sanitize_option( $option, $newvalue );
    492494        $oldvalue = get_option( $option );
    493495        $newvalue = apply_filters( 'pre_update_option_' . $option, $newvalue, $oldvalue );
     496        $newvalue = apply_filters( 'pre_update_option', $newvalue, $oldvalue, $option );
    494497
    495498        // If the new and old values are the same, no need to update.
    496499        if ( $newvalue === $oldvalue )