Make WordPress Core

Changeset 24433


Ignore:
Timestamp:
06/16/2013 04:06:12 AM (13 years ago)
Author:
nacin
Message:

Pass value and expiration to result hooks in set_transient() and set_site_transient(). props johnbillion, fixes #24583.

File:
1 edited

Legend:

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

    r23510 r24433  
    516516        }
    517517        if ( $result ) {
    518                 do_action( 'set_transient_' . $transient );
    519                 do_action( 'setted_transient', $transient );
     518                do_action( 'set_transient_' . $transient, $value, $expiration );
     519                do_action( 'setted_transient', $transient, $value, $expiration );
    520520        }
    521521        return $result;
    … …  
    10531053        }
    10541054        if ( $result ) {
    1055                 do_action( 'set_site_transient_' . $transient );
    1056                 do_action( 'setted_site_transient', $transient );
     1055                do_action( 'set_site_transient_' . $transient, $value, $expiration );
     1056                do_action( 'setted_site_transient', $transient, $value, $expiration );
    10571057        }
    10581058        return $result;
Note: See TracChangeset for help on using the changeset viewer.