WordPress.org

Make WordPress Core

Ticket #21330: 21330.7.patch

File 21330.7.patch, 1.2 KB (added by chriscct7, 4 years ago)

Updated filter names

  • src/wp-includes/option.php

     
    706706         * @param int    $expiration Time until expiration in seconds.
    707707         * @param string $transient  Transient name.
    708708         */
    709         $expiration = apply_filters( 'expiration_pre_set_transient_' . $transient, $expiration, $value, $transient );
     709        $expiration = apply_filters( 'pre_set_transient_' . $transient . '_expiration', $expiration, $value, $transient );
    710710
    711711        if ( wp_using_ext_object_cache() ) {
    712712                $result = wp_cache_set( $transient, $value, 'transient', $expiration );
     
    16131613         * @param int    $expiration Time until expiration in seconds.
    16141614         * @param string $transient  Transient name.
    16151615         */
    1616         $expiration = apply_filters( 'expiration_pre_set_site_transient_' . $transient, $expiration, $value, $transient );     
     1616        $expiration = apply_filters( 'pre_set_site_transient_' . $transient . '_expiration', $expiration, $value, $transient );
    16171617
    16181618        if ( wp_using_ext_object_cache() ) {
    16191619                $result = wp_cache_set( $transient, $value, 'site-transient', $expiration );