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

Props SergeyBiryukov
Fixes #34269

Built from https://develop.svn.wordpress.org/trunk@35082


git-svn-id: http://core.svn.wordpress.org/trunk@35047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2015-10-12 21:02:25 +00:00
parent affe1ab5ad
commit a2609c13fa
2 changed files with 8 additions and 4 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.

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35081';
$wp_version = '4.4-alpha-35082';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.