WordPress.org

Make WordPress Core

Changeset 32588


Ignore:
Timestamp:
05/24/2015 09:10:00 PM (6 years ago)
Author:
wonderboymusic
Message:

Alter some @return doc blocks for cron.php.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/cron.php

    r32580 r32588  
    1919 * @param string $hook Action hook to execute when cron is run.
    2020 * @param array $args Optional. Arguments to pass to the hook's callback function.
     21 * @return void|false
    2122 */
    2223function wp_schedule_single_event( $timestamp, $hook, $args = array()) {
     
    6768 * @param string $hook Action hook to execute when cron is run.
    6869 * @param array $args Optional. Arguments to pass to the hook's callback function.
    69  * @return false|null False on failure, null when complete with scheduling event.
     70 * @return false|void False when does not schedule event.
    7071 */
    7172function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array()) {
     
    100101 * @param string $hook Action hook to execute when cron is run.
    101102 * @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.
    103104 */
    104105function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array() ) {
     
    196197 * @param string $hook Action hook to execute when cron is run.
    197198 * @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.
    199200 */
    200201function wp_next_scheduled( $hook, $args = array() ) {
     
    214215 *
    215216 * @since 2.1.0
    216  *
    217  * @return null Cron could not be spawned, because it is not needed to run.
    218217 */
    219218function spawn_cron( $gmt_time = 0 ) {
    220 
    221219    if ( ! $gmt_time )
    222220        $gmt_time = microtime( true );
     
    311309 *
    312310 * @since 2.1.0
    313  *
    314  * @return null When doesn't need to run Cron.
    315311 */
    316312function wp_cron() {
    317 
    318313    // Prevent infinite loops caused by lack of wp-cron.php
    319314    if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) )
     
    393388 * @param string $hook Action hook to execute when cron is run.
    394389 * @param array $args Optional. Arguments to pass to the hook's callback function.
    395  * @return string|bool False, if no schedule. Schedule on success.
     390 * @return string|false False, if no schedule. Schedule on success.
    396391 */
    397392function wp_get_schedule($hook, $args = array()) {
     
    417412 * @access private
    418413 *
    419  * @return array CRON info array.
     414 * @return false|array CRON info array.
    420415 */
    421416function _get_cron_array()  {
Note: See TracChangeset for help on using the changeset viewer.