Changeset 54110 for trunk/src/wp-includes/cron.php
- Timestamp:
- 09/09/2022 01:51:52 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r53878 r54110 1123 1123 */ 1124 1124 $pre = apply_filters( 'pre_get_ready_cron_jobs', null ); 1125 1125 1126 if ( null !== $pre ) { 1126 1127 return $pre; … … 1128 1129 1129 1130 $crons = _get_cron_array(); 1130 1131 1131 $gmt_time = microtime( true ); 1132 $keys = array_keys( $crons );1133 if ( isset( $keys[0] ) && $keys[0] > $gmt_time ) {1134 return array();1135 }1136 1137 1132 $results = array(); 1133 1138 1134 foreach ( $crons as $timestamp => $cronhooks ) { 1139 1135 if ( $timestamp > $gmt_time ) { 1140 1136 break; 1141 1137 } 1138 1142 1139 $results[ $timestamp ] = $cronhooks; 1143 1140 }
Note: See TracChangeset
for help on using the changeset viewer.