Ticket #30576: option.php.2.patch
| File option.php.2.patch, 968 bytes (added by , 12 years ago) |
|---|
-
option.php
627 627 */ 628 628 function set_transient( $transient, $value, $expiration = 0 ) { 629 629 630 $expiration = (int) $expiration; 631 630 632 /** 631 633 * Filter a specific transient before its value is set. 632 634 * … … 633 635 * The dynamic portion of the hook name, `$transient`, refers to the transient name. 634 636 * 635 637 * @since 3.0.0 638 * @since 4.2.0 Added `$expiration` parameter. 636 639 * 637 640 * @param mixed $value New value of transient. 641 * @param int $expiration Time until expiration in seconds. 638 642 */ 639 $value = apply_filters( 'pre_set_transient_' . $transient, $value );643 $value = apply_filters( 'pre_set_transient_' . $transient, $value, $expiration ); 640 644 641 $expiration = (int) $expiration;642 643 645 if ( wp_using_ext_object_cache() ) { 644 646 $result = wp_cache_set( $transient, $value, 'transient', $expiration ); 645 647 } else {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)