Add `$transient` as a parameter to the `set_transient_{transient}` action.

Props SergeyBiryukov
Fixes #34269


git-svn-id: https://develop.svn.wordpress.org/trunk@35082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-10-12 21:01:24 +00:00
parent e05891a7ec
commit f5d2e0dd61
1 changed files with 7 additions and 3 deletions

View File

@ -748,16 +748,20 @@ function set_transient( $transient, $value, $expiration = 0 ) {
* The dynamic portion of the hook name, `$transient`, refers to the transient name.
*
* @since 3.0.0
* @since 3.6.0 The `$value` and `$expiration` parameters were added.
* @since 4.4.0 The `$transient` parameter was added.
*
* @param mixed $value Transient value.
* @param int $expiration Time until expiration in seconds. Default 0.
* @param mixed $value Transient value.
* @param int $expiration Time until expiration in seconds. Default 0.
* @param string $transient The name of the transient.
*/
do_action( 'set_transient_' . $transient, $value, $expiration );
do_action( 'set_transient_' . $transient, $value, $expiration, $transient );
/**
* Fires after the value for a transient has been set.
*
* @since 3.0.0
* @since 3.6.0 The `$value` and `$expiration` parameters were added.
*
* @param string $transient The name of the transient.
* @param mixed $value Transient value.