Make WordPress Core

Changeset 34865

Timestamp:
10/06/2015 02:10:00 PM (9 years ago)
Author:
wonderboymusic
Message:

Transients, add filters for $expiration:

  • 'expiration_pre_set_site_transient_' . $transient
  • 'expiration_pre_set_transient_' . $transient


Props chriscct7, wpsmith, nacin.
Fixes #21330.

File:
1 edited

Legend:

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

    r34828 r34865  
    695695     */
    696696    $value = apply_filters( 'pre_set_transient_' . $transient, $value, $expiration, $transient );
     697
     698
     699
     700
     701
     702
     703
     704
     705
     706
     707
     708
     709
    697710
    698711    if ( wp_using_ext_object_cache() ) {
     
    15901603    $expiration = (int) $expiration;
    15911604
     1605
     1606
     1607
     1608
     1609
     1610
     1611
     1612
     1613
     1614
     1615
     1616
     1617
    15921618    if ( wp_using_ext_object_cache() ) {
    15931619        $result = wp_cache_set( $transient, $value, 'site-transient', $expiration );
Note: See TracChangeset for help on using the changeset viewer.