WordPress.org

Plugin Directory

Changeset 616104


Ignore:
Timestamp:
10/23/12 11:04:14 (18 months ago)
Author:
westi
Message:

Beta Tester: Fix up the version check forcing code to ensure that we always do a fresh check when we ask for it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-beta-tester/trunk/wp-beta-tester.php

    r396643 r616104  
    55    Description: Allows you to easily upgrade to Beta releases. 
    66    Author: Peter Westwood 
    7     Version: 0.95 
     7    Version: 0.96-alpha 
    88    Author URI: http://blog.ftwr.co.uk/ 
    99    License: GPL v2 or later 
     
    3939     
    4040    function action_admin_head_plugins_php() { 
     41        // Workaround the check throttling in wp_version_check() 
     42        $st = get_site_transient( 'update_core' ); 
     43        if ( is_object( $st ) ) { 
     44            $st->last_checked = 0; 
     45            set_site_transient( 'update_core', $st ); 
     46        } 
    4147        wp_version_check(); 
    4248        //Can output an error here if current config drives version backwards 
Note: See TracChangeset for help on using the changeset viewer.