Transients: Rename filters added in [34865].
* `expiration_pre_set_transient_$transient` => `expiration_of_transient_$transient` * `expiration_pre_set_site_transient_$transient` => `expiration_of_site_transient_$transient` Fix hook docs. Props chriscct7. Fixes #21330. Built from https://develop.svn.wordpress.org/trunk@34877 git-svn-id: http://core.svn.wordpress.org/trunk@34842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1e2caf6712
commit
e237e59172
|
@ -702,11 +702,11 @@ function set_transient( $transient, $value, $expiration = 0 ) {
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
* @param mixed $value New value of transient.
|
|
||||||
* @param int $expiration Time until expiration in seconds.
|
* @param int $expiration Time until expiration in seconds.
|
||||||
|
* @param mixed $value New value of transient.
|
||||||
* @param string $transient Transient name.
|
* @param string $transient Transient name.
|
||||||
*/
|
*/
|
||||||
$expiration = apply_filters( 'expiration_pre_set_transient_' . $transient, $expiration, $value, $transient );
|
$expiration = apply_filters( 'expiration_of_transient_' . $transient, $expiration, $value, $transient );
|
||||||
|
|
||||||
if ( wp_using_ext_object_cache() ) {
|
if ( wp_using_ext_object_cache() ) {
|
||||||
$result = wp_cache_set( $transient, $value, 'transient', $expiration );
|
$result = wp_cache_set( $transient, $value, 'transient', $expiration );
|
||||||
|
@ -1523,7 +1523,7 @@ function get_site_transient( $transient ) {
|
||||||
* returning the passed value instead.
|
* returning the passed value instead.
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
* @since 4.4.0 The `$transient` parameter was added
|
* @since 4.4.0 The `$transient` parameter was added.
|
||||||
*
|
*
|
||||||
* @param mixed $pre_site_transient The default value to return if the site transient does not exist.
|
* @param mixed $pre_site_transient The default value to return if the site transient does not exist.
|
||||||
* Any value other than false will short-circuit the retrieval
|
* Any value other than false will short-circuit the retrieval
|
||||||
|
@ -1561,7 +1561,7 @@ function get_site_transient( $transient ) {
|
||||||
* The dynamic portion of the hook name, `$transient`, refers to the transient name.
|
* The dynamic portion of the hook name, `$transient`, refers to the transient name.
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
* @since 4.4.0 The `$transient` parameter was added
|
* @since 4.4.0 The `$transient` parameter was added.
|
||||||
*
|
*
|
||||||
* @param mixed $value Value of site transient.
|
* @param mixed $value Value of site transient.
|
||||||
* @param string $transient Transient name.
|
* @param string $transient Transient name.
|
||||||
|
@ -1593,9 +1593,9 @@ function set_site_transient( $transient, $value, $expiration = 0 ) {
|
||||||
* The dynamic portion of the hook name, `$transient`, refers to the transient name.
|
* The dynamic portion of the hook name, `$transient`, refers to the transient name.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
* @since 4.4.0 The `$transient` parameter was added
|
* @since 4.4.0 The `$transient` parameter was added.
|
||||||
*
|
*
|
||||||
* @param mixed $value Value of site transient.
|
* @param mixed $value New value of site transient.
|
||||||
* @param string $transient Transient name.
|
* @param string $transient Transient name.
|
||||||
*/
|
*/
|
||||||
$value = apply_filters( 'pre_set_site_transient_' . $transient, $value, $transient );
|
$value = apply_filters( 'pre_set_site_transient_' . $transient, $value, $transient );
|
||||||
|
@ -1609,11 +1609,11 @@ function set_site_transient( $transient, $value, $expiration = 0 ) {
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
* @param mixed $value New value of transient.
|
|
||||||
* @param int $expiration Time until expiration in seconds.
|
* @param int $expiration Time until expiration in seconds.
|
||||||
|
* @param mixed $value New value of site transient.
|
||||||
* @param string $transient Transient name.
|
* @param string $transient Transient name.
|
||||||
*/
|
*/
|
||||||
$expiration = apply_filters( 'expiration_pre_set_site_transient_' . $transient, $expiration, $value, $transient );
|
$expiration = apply_filters( 'expiration_of_site_transient_' . $transient, $expiration, $value, $transient );
|
||||||
|
|
||||||
if ( wp_using_ext_object_cache() ) {
|
if ( wp_using_ext_object_cache() ) {
|
||||||
$result = wp_cache_set( $transient, $value, 'site-transient', $expiration );
|
$result = wp_cache_set( $transient, $value, 'site-transient', $expiration );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34876';
|
$wp_version = '4.4-alpha-34877';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue