Ticket #21330: 21330.3.patch
| File 21330.3.patch, 1.3 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/option.php
695 695 */ 696 696 $value = apply_filters( 'pre_set_transient_' . $transient, $value, $expiration, $transient ); 697 697 698 /** 699 * Filter the expiration for a transient before its value is set. 700 * 701 * The dynamic portion of the hook name, `$transient`, refers to the transient name. 702 * 703 * @since 4.4.0 704 * 705 * @param mixed $value New value of transient. 706 * @param int $expiration Time until expiration in seconds. 707 * @param string $transient Transient name. 708 */ 709 $expiration = apply_filters( 'expiration_pre_set_transient_' . $transient, $expiration, $value, $transient ); 710 698 711 if ( wp_using_ext_object_cache() ) { 699 712 $result = wp_cache_set( $transient, $value, 'transient', $expiration ); 700 713 } else { … … 1481 1494 1482 1495 $expiration = (int) $expiration; 1483 1496 1497 /** This filter is documented in wp-includes/option.php */ 1498 $expiration = apply_filters( 'expiration_pre_set_transient_' . $transient, $expiration, $value, $transient ); 1499 1484 1500 if ( wp_using_ext_object_cache() ) { 1485 1501 $result = wp_cache_set( $transient, $value, 'site-transient', $expiration ); 1486 1502 } else {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)