WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21330, comment 6


Ignore:
Timestamp:
07/22/12 02:15:41 (3 years ago)
Author:
wpsmith
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21330, comment 6

    initial v1  
    55 
    66The 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{{{ 
    89add_filter( 'pre_set_site_transient_browser_93ce43dc55bd29ecc99e83ca12b5d7f4', 'wps_change_browser_transient' ); 
    910function wps_change_browser_transient( $val ) { 
     
    1314    return $val; 
    1415} 
    15 ` 
     16}}} 
     17 
    1618 
    1719However, I am not convinced that this is the best solution...