Changeset 53791 for trunk/src/wp-includes/cron.php
- Timestamp:
- 07/29/2022 03:32:58 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/cron.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r52236 r53791 120 120 */ 121 121 $crons = _get_cron_array(); 122 if ( ! is_array( $crons ) ) {123 $crons = array();124 }125 122 126 123 $key = md5( serialize( $event->args ) ); … … 307 304 308 305 $crons = _get_cron_array(); 309 if ( ! is_array( $crons ) ) {310 $crons = array();311 }312 306 313 307 $crons[ $event->timestamp ][ $event->hook ][ $key ] = array( … … 1134 1128 1135 1129 $crons = _get_cron_array(); 1136 if ( ! is_array( $crons ) ) {1137 return array();1138 }1139 1130 1140 1131 $gmt_time = microtime( true ); … … 1163 1154 * 1164 1155 * @since 2.1.0 1156 * @since 6.1.0 Return type modified to consistenty return an array. 1165 1157 * @access private 1166 1158 * 1167 * @return array[] |false Array of cron info arrays on success, false on failure.1159 * @return array[] Array of cron events. 1168 1160 */ 1169 1161 function _get_cron_array() { 1170 1162 $cron = get_option( 'cron' ); 1171 1163 if ( ! is_array( $cron ) ) { 1172 return false;1164 return array(); 1173 1165 } 1174 1166
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)