WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49357 r49927  
    755755 * @since 5.1.0 Return value added to indicate success or failure.
    756756 *
    757  * @return bool|int On success an integer indicating number of events spawned (0 indicates no
    758  *                  events needed to be spawned), false if spawning fails for one or more events.
     757 * @return false|int On success an integer indicating number of events spawned (0 indicates no
     758 *                   events needed to be spawned), false if spawning fails for one or more events.
    759759 */
    760760function wp_cron() {
     
    881881     * @since 5.1.0
    882882     *
    883      * @param string|bool $schedule Schedule for the hook. False if not found.
    884      * @param string      $hook     Action hook to execute when cron is run.
    885      * @param array       $args     Optional. Arguments to pass to the hook's callback function.
     883     * @param string|false $schedule Schedule for the hook. False if not found.
     884     * @param string       $hook     Action hook to execute when cron is run.
     885     * @param array        $args     Optional. Arguments to pass to the hook's callback function.
    886886     */
    887887    return apply_filters( 'get_schedule', $schedule, $hook, $args );
Note: See TracChangeset for help on using the changeset viewer.