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
This commit is contained in:
Andrew Nacin 2013-06-16 04:06:12 +00:00
parent 91186ec868
commit 69581bd827
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}