Changeset 32588
- Timestamp:
- 05/24/2015 09:10:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r32580 r32588 19 19 * @param string $hook Action hook to execute when cron is run. 20 20 * @param array $args Optional. Arguments to pass to the hook's callback function. 21 * @return void|false 21 22 */ 22 23 function wp_schedule_single_event( $timestamp, $hook, $args = array()) { … … 67 68 * @param string $hook Action hook to execute when cron is run. 68 69 * @param array $args Optional. Arguments to pass to the hook's callback function. 69 * @return false| null False on failure, null when complete with schedulingevent.70 * @return false|void False when does not schedule event. 70 71 */ 71 72 function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array()) { … … 100 101 * @param string $hook Action hook to execute when cron is run. 101 102 * @param array $args Optional. Arguments to pass to the hook's callback function. 102 * @return false| null False on failure. Null when event is rescheduled.103 * @return false|void False when does not schedule event. 103 104 */ 104 105 function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array() ) { … … 196 197 * @param string $hook Action hook to execute when cron is run. 197 198 * @param array $args Optional. Arguments to pass to the hook's callback function. 198 * @return bool|int The UNIX timestamp of the next time the scheduled event will occur.199 * @return false|int The UNIX timestamp of the next time the scheduled event will occur. 199 200 */ 200 201 function wp_next_scheduled( $hook, $args = array() ) { … … 214 215 * 215 216 * @since 2.1.0 216 *217 * @return null Cron could not be spawned, because it is not needed to run.218 217 */ 219 218 function spawn_cron( $gmt_time = 0 ) { 220 221 219 if ( ! $gmt_time ) 222 220 $gmt_time = microtime( true ); … … 311 309 * 312 310 * @since 2.1.0 313 *314 * @return null When doesn't need to run Cron.315 311 */ 316 312 function wp_cron() { 317 318 313 // Prevent infinite loops caused by lack of wp-cron.php 319 314 if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) ) … … 393 388 * @param string $hook Action hook to execute when cron is run. 394 389 * @param array $args Optional. Arguments to pass to the hook's callback function. 395 * @return string| boolFalse, if no schedule. Schedule on success.390 * @return string|false False, if no schedule. Schedule on success. 396 391 */ 397 392 function wp_get_schedule($hook, $args = array()) { … … 417 412 * @access private 418 413 * 419 * @return array CRON info array.414 * @return false|array CRON info array. 420 415 */ 421 416 function _get_cron_array() {
Note: See TracChangeset
for help on using the changeset viewer.