From 69581bd827eea190215712b314e0aef4f7ddfb41 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 16 Jun 2013 04:06:12 +0000 Subject: [PATCH] Pass value and expiration to result hooks in set_transient() and set_site_transient(). props johnbillion, fixes #24583. git-svn-id: http://core.svn.wordpress.org/trunk@24433 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/option.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index 509ec44d6a..3c355e6685 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -515,8 +515,8 @@ function set_transient( $transient, $value, $expiration = 0 ) { } } if ( $result ) { - do_action( 'set_transient_' . $transient ); - do_action( 'setted_transient', $transient ); + do_action( 'set_transient_' . $transient, $value, $expiration ); + do_action( 'setted_transient', $transient, $value, $expiration ); } return $result; } @@ -1052,8 +1052,8 @@ function set_site_transient( $transient, $value, $expiration = 0 ) { } } if ( $result ) { - do_action( 'set_site_transient_' . $transient ); - do_action( 'setted_site_transient', $transient ); + do_action( 'set_site_transient_' . $transient, $value, $expiration ); + do_action( 'setted_site_transient', $transient, $value, $expiration ); } return $result; }