Ticket #48965: wp-cron.php.patch
File wp-cron.php.patch, 839 bytes (added by , 5 years ago) |
---|
-
wp-cron.php
105 105 * The cron lock (a unix timestamp set when the cron was spawned), 106 106 * must match $doing_wp_cron (the "key"). 107 107 */ 108 if ( $doing_cron_transient != $doing_wp_cron ) {108 if ( $doing_cron_transient !== $doing_wp_cron ) { 109 109 return; 110 110 } 111 111 … … 138 138 do_action_ref_array( $hook, $v['args'] ); 139 139 140 140 // If the hook ran too long and another cron process stole the lock, quit. 141 if ( _get_cron_lock() != $doing_wp_cron ) {141 if ( _get_cron_lock() !== $doing_wp_cron ) { 142 142 return; 143 143 } 144 144 } … … 145 145 } 146 146 } 147 147 148 if ( _get_cron_lock() == $doing_wp_cron ) {148 if ( _get_cron_lock() === $doing_wp_cron ) { 149 149 delete_transient( 'doing_cron' ); 150 150 } 151 151