Ticket #20537: 20537.2.patch
File 20537.2.patch, 838 bytes (added by , 13 years ago) |
---|
-
wp-includes/cron.php
256 256 * @return null When doesn't need to run Cron. 257 257 */ 258 258 function wp_cron() { 259 global $current_blog; 259 260 260 261 // Prevent infinite loops caused by lack of wp-cron.php 261 262 if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) ) … … 264 265 if ( false === $crons = _get_cron_array() ) 265 266 return; 266 267 268 // Don't process cron for suspended blogs. 269 if ( is_multisite() && ( $current_blog->archived || $current_blog->spam || $current_blog->deleted ) ) 270 return; 271 267 272 $local_time = microtime( true ); 268 273 $keys = array_keys( $crons ); 269 274 if ( isset($keys[0]) && $keys[0] > $local_time )