WordPress.org

Make WordPress Core

Changeset 12684


Ignore:
Timestamp:
01/10/2010 02:39:24 AM (12 years ago)
Author:
ryan
Message:

Don't delete site transient if it doesn't have a timeout set. fixes #11844

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r12680 r12684  
    33973397        $transient_option = '_site_transient_' . esc_sql($transient);
    33983398        $transient_timeout = '_site_transient_timeout_' . esc_sql($transient);
    3399         if ( get_site_option($transient_timeout) < time() ) {
     3399        $timeout = get_site_option($transient_timeout);
     3400        if ( false !== $timeout && $timeout < time() ) {
    34003401            delete_site_option($transient_option);
    34013402            delete_site_option($transient_timeout);
Note: See TracChangeset for help on using the changeset viewer.