WordPress.org

Make WordPress Core

Changeset 34877


Ignore:
Timestamp:
10/06/2015 05:58:19 PM (4 years ago)
Author:
ocean90
Message:

Transients: Rename filters added in [34865].

  • expiration_pre_set_transient_$transient => expiration_of_transient_$transient
  • expiration_pre_set_site_transient_$transient => expiration_of_site_transient_$transient

Fix hook docs.

Props chriscct7.
Fixes #21330.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r34865 r34877  
    703703     * @since 4.4.0
    704704     *
     705     * @param int    $expiration Time until expiration in seconds.
    705706     * @param mixed  $value      New value of transient.
    706      * @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( 'expiration_of_transient_' . $transient, $expiration, $value, $transient );
    710710
    711711    if ( wp_using_ext_object_cache() ) {
     
    15241524     *
    15251525     * @since 2.9.0
    1526      * @since 4.4.0 The `$transient` parameter was added
     1526     * @since 4.4.0 The `$transient` parameter was added.
    15271527     *
    15281528     * @param mixed  $pre_site_transient The default value to return if the site transient does not exist.
     
    15621562     *
    15631563     * @since 2.9.0
    1564      * @since 4.4.0 The `$transient` parameter was added
     1564     * @since 4.4.0 The `$transient` parameter was added.
    15651565     *
    15661566     * @param mixed  $value     Value of site transient.
     
    15941594     *
    15951595     * @since 3.0.0
    1596      * @since 4.4.0 The `$transient` parameter was added
    1597      *
    1598      * @param mixed  $value     Value of site transient.
     1596     * @since 4.4.0 The `$transient` parameter was added.
     1597     *
     1598     * @param mixed  $value     New value of site transient.
    15991599     * @param string $transient Transient name.
    16001600     */
     
    16101610     * @since 4.4.0
    16111611     *
    1612      * @param mixed  $value      New value of transient.
    16131612     * @param int    $expiration Time until expiration in seconds.
     1613     * @param mixed  $value      New value of site transient.
    16141614     * @param string $transient  Transient name.
    16151615     */
    1616     $expiration = apply_filters( 'expiration_pre_set_site_transient_' . $transient, $expiration, $value, $transient ); 
     1616    $expiration = apply_filters( 'expiration_of_site_transient_' . $transient, $expiration, $value, $transient );
    16171617
    16181618    if ( wp_using_ext_object_cache() ) {
Note: See TracChangeset for help on using the changeset viewer.