Changeset 8572 for trunk/wp-includes/cron.php
- Timestamp:
- 08/06/2008 08:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cron.php
r8537 r8572 111 111 foreach ( $crons as $timestamp => $cronhooks ) { 112 112 if ( $timestamp > time() ) break; 113 foreach ( $cronhooks as $hook => $args ) {113 foreach ( (array) $cronhooks as $hook => $args ) { 114 114 if ( isset($schedules[$hook]['callback']) && !call_user_func( $schedules[$hook]['callback'] ) ) 115 115 continue; … … 169 169 $new_cron = array(); 170 170 171 foreach ( $cron as $timestamp => $hooks) {172 foreach ( $hooks as $hook => $args ) {171 foreach ( (array) $cron as $timestamp => $hooks) { 172 foreach ( (array) $hooks as $hook => $args ) { 173 173 $key = md5(serialize($args['args'])); 174 174 $new_cron[$timestamp][$hook][$key] = $args;
Note: See TracChangeset
for help on using the changeset viewer.