From a2609c13fafd11a010842968edeaf59fcdd5f9fc Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 12 Oct 2015 21:02:25 +0000 Subject: [PATCH] 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 --- wp-includes/option.php | 10 +++++++--- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index e0e69aa519..4ac5a16eae 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 25ee5201a4..e9e3773fee 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.