Plugin Directory

Changeset 423919


Ignore:
Timestamp:
08/15/2011 07:30:43 PM (15 years ago)
Author:
jaredh123
Message:

fix incorrectly set transient with too long expiration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prophoto-beta-tester/trunk/pp-beta-tester.php

    r389377 r423919  
    55    Description: Facilitates beta-testing for future releases of the ProPhoto theme
    66    Author: Jared Henderson
    7     Version: 0.10
     7    Version: 0.11
    88    Author URI: http://www.prophotoblogs.com/beta-testing-plugin/
    99 */
     
    2929        add_action( 'post_pp_loaded', array( &$this, 'updateMenuTerms' ) );
    3030        add_action( 'post_pp_loaded', array( &$this, 'fixSlideshowTerms' ) );
     31       
     32        self::fixBadTransient();
     33    }
     34   
     35   
     36    function fixBadTransient() {
     37        if ( $transientExpiration = get_option( '_transient_timeout_pp_delay_next_auto_upgrade_attempt' ) ) {
     38            if ( $transientExpiration - time() > ( 60*60 * 12 ) ) {
     39                delete_transient( 'pp_delay_next_auto_upgrade_attempt' );
     40            }
     41        }
    3142    }
    3243   
Note: See TracChangeset for help on using the changeset viewer.