Make WordPress Core

Ticket #30576: option.php.patch

File option.php.patch, 752 bytes (added by mgibbs189, 12 years ago)
  • option.php

     
    627627 */
    628628function set_transient( $transient, $value, $expiration = 0 ) {
    629629
     630        $expiration = (int) $expiration;
     631
    630632        /**
    631633         * Filter a specific transient before its value is set.
    632634         *
     
    636638         *
    637639         * @param mixed $value New value of transient.
    638640         */
    639         $value = apply_filters( 'pre_set_transient_' . $transient, $value );
     641        $value = apply_filters( 'pre_set_transient_' . $transient, $value, $expiration );
    640642
    641         $expiration = (int) $expiration;
    642 
    643643        if ( wp_using_ext_object_cache() ) {
    644644                $result = wp_cache_set( $transient, $value, 'transient', $expiration );
    645645        } else {