Changes between Initial Version and Version 1 of Ticket #21330, comment 6
- Timestamp:
- 07/22/2012 02:15:41 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21330, comment 6
initial v1 5 5 6 6 The expiration time is always set (right? if not set, it's set to 0 by the time of the filter) and is always an integer. For example, wp_check_browser_version() has a set expiration that is known. So...assuming I knew the $key (93ce43dc55bd29ecc99e83ca12b5d7f4) in this example. 7 ` 7 8 {{{ 8 9 add_filter( 'pre_set_site_transient_browser_93ce43dc55bd29ecc99e83ca12b5d7f4', 'wps_change_browser_transient' ); 9 10 function wps_change_browser_transient( $val ) { … … 13 14 return $val; 14 15 } 15 ` 16 }}} 17 16 18 17 19 However, I am not convinced that this is the best solution...