Make WordPress Core

Ticket #24686: 24686.2.patch

File 24686.2.patch, 748 bytes (added by adamsilverstein, 8 years ago)

updated patch for new use case

  • src/wp-includes/option.php

     
    661661         * @param mixed  $value     Value of transient.
    662662         * @param string $transient Transient name.
    663663         */
    664         return apply_filters( "transient_{$transient}", $value, $transient );
     664        $value = apply_filters( "transient_{$transient}", $value, $transient );
     665
     666        /**
     667         * Fires after the value for a transient has been set.
     668         *
     669         * @since 4.7.0
     670         *
     671         * @param mixed  $value      Transient value.
     672         * @param string $transient  The name of the transient.
     673         */
     674        return apply_filters( 'getted_transient', $value, $transient );
     675
    665676}
    666677
    667678/**