Pass value and expiration to result hooks in set_transient() and set_site_transient(). props johnbillion, fixes #24583.
git-svn-id: https://develop.svn.wordpress.org/trunk@24433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6aef31fc5f
commit
443609fcab
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user