Make WordPress Core


Ignore:
Timestamp:
10/29/2008 08:26:20 PM (16 years ago)
Author:
ryan
Message:

Formatting cleanup

File:
1 edited

Legend:

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

    r9181 r9403  
    2525    if ( $next && $next <= $timestamp + 600 )
    2626        return;
    27        
     27
    2828    $crons = _get_cron_array();
    2929    $key = md5(serialize($args));
     
    179179        return;
    180180
    181     $cron_url = get_option( 'siteurl' ) . '/wp-cron.php?check=' . wp_hash('187425');
     181    // WPCOM: Use SERVER_ADDR
     182    //$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?check=' . wp_hash('187425');
     183    $cron_url = 'http://' . $_SERVER['SERVER_ADDR'] . '/wp-cron.php?check=' . wp_hash('187425');
    182184    /*
    183185    * multiple processes on multiple web servers can run this code concurrently
     
    188190    // clean up potential invalid value resulted from various system chaos
    189191    if ( $flag != 0 ) {
    190         if ( $flag > $local_time + 10*60 || $flag < $local_time - 10*60 ) {
    191             update_option('doing_cron', 0);
    192             $flag = 0;
    193         }
    194     }
    195 
    196      //don't run if another process is currently running it
     192        if ( $flag > $local_time + 10*60 || $flag < $local_time - 10*60 ) {
     193            update_option('doing_cron', 0);
     194            $flag = 0;
     195        }
     196    }
     197
     198    //don't run if another process is currently running it
    197199    if ( $flag > $local_time )
    198200        return;
Note: See TracChangeset for help on using the changeset viewer.