WordPress.org

Plugin Directory

Changeset 481621


Ignore:
Timestamp:
12/28/11 20:33:13 (2 years ago)
Author:
tott
Message:

Make sure that validated wp-cron-control requests also are valid in wp-cron.php by setting the global value

Location:
wp-cron-control/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-cron-control/trunk/readme.txt

    r479133 r481621  
    3131== ChangeLog == 
    3232 
     33= Version 0.6 = 
     34 
     35* Make sure that validated wp-cron-control requests also are valid in wp-cron.php by setting the global $doing_wp_cron value 
     36 
    3337= Version 0.5 = 
    3438 
  • wp-cron-control/trunk/wp-cron-control.php

    r479133 r481621  
    55 Description: get control over wp-cron execution. 
    66 Author: Thorsten Ott, Automattic 
    7  Version: 0.5 
     7 Version: 0.6 
    88 Author URI: http://hitchhackerguide.com 
    99 */ 
     
    260260                // set a transient to allow locking down parallel requests 
    261261                set_transient( 'doing_cron', $local_time ); 
    262              
    263              
    264262                 
     263                // make sure the request also validates in wp-cron.php 
     264                global $doing_wp_cron; 
     265                $doing_wp_cron = $local_time; 
     266             
    265267                // if settings allow it validate if there are any scheduled posts without a cron event 
    266268                if ( 1 == self::instance()->settings['enable_scheduled_post_validation'] ) { 
Note: See TracChangeset for help on using the changeset viewer.