Make WordPress Core

Ticket #32656: 32656.7.diff

File 32656.7.diff, 4.7 KB (added by peterwilsoncc, 5 years ago)

Version number updates

  • src/wp-includes/cron.php

    diff --git a/src/wp-includes/cron.php b/src/wp-includes/cron.php
    index 77eb6b6..046c0dc 100644
    a b function wp_schedule_single_event( $timestamp, $hook, $args = array() ) { 
    6161         *
    6262         * Return true if the event was scheduled, false if not.
    6363         *
    64          * @since 5.0.0
     64         * @since 5.1.0
    6565         *
    6666         * @param null|bool $pre   Value to return instead. Default null to continue adding the event.
    6767         * @param stdClass  $event {
    function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array() ) 
    252252         * For plugins replacing wp-cron, return true if the event was successfully
    253253         * rescheduled, false if not.
    254254         *
    255          * @since 5.0.0
     255         * @since 5.1.0
    256256         *
    257257         * @param null|bool $pre   Value to return instead. Default null to continue adding the event.
    258258         * @param stdClass  $event {
    function wp_unschedule_event( $timestamp, $hook, $args = array() ) { 
    318318         * For plugins replacing wp-cron, return true if the event was successfully
    319319         * unscheduled, false if not.
    320320         *
    321          * @since 5.0.0
     321         * @since 5.1.0
    322322         *
    323323         * @param null|bool $pre       Value to return instead. Default null to continue unscheduling the event.
    324324         * @param int       $timestamp Timestamp for when to run the event.
    function wp_clear_scheduled_hook( $hook, $args = array() ) { 
    378378         * unscheduled (zero if no events were registered with the hook) or false
    379379         * if unscheduling one or more events fails.
    380380         *
    381          * @since 5.0.0
     381         * @since 5.1.0
    382382         *
    383383         * @param null|array $pre  Value to return instead. Default null to continue unscheduling the event.
    384384         * @param string     $hook Action hook, the execution of which will be unscheduled.
    function wp_unschedule_hook( $hook ) { 
    438438         * unscheduled (zero if no events were registered with the hook) or false
    439439         * if unscheduling one or more events fails.
    440440         *
    441          * @since 5.0.0
     441         * @since 5.1.0
    442442         *
    443443         * @param null|array $pre  Value to return instead. Default null to continue unscheduling the hook.
    444444         * @param string     $hook Action hook, the execution of which will be unscheduled.
    function wp_unschedule_hook( $hook ) { 
    483483 *
    484484 * Retrieve the full event object for a given event.
    485485 *
    486  * @since 5.0.0
     486 * @since 5.1.0
    487487 *
    488488 * @param string   $hook      Action hook of the event.
    489489 * @param array    $args      Optional. Array containing each separate argument to pass to the hook's callback function.
    function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) { 
    507507         * Return false if the event does not exist, otherwise an event object
    508508         * should be returned.
    509509         *
    510          * @since 5.0.0
     510         * @since 5.1.0
    511511         *
    512512         * @param null|bool $pre       Value to return instead. Default null to continue retrieving the event.
    513513         * @param string    $hook      Action hook of the event.
    function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) { 
    551551 * Retrieve the next timestamp for an event.
    552552 *
    553553 * @since 2.1.0
    554  * @since 5.0.0 {@see 'pre_next_scheduled'} and {@see 'next_scheduled'} filters added.
     554 * @since 5.1.0 {@see 'pre_next_scheduled'} and {@see 'next_scheduled'} filters added.
    555555 *
    556556 * @param string $hook Action hook of the event.
    557557 * @param array  $args Optional. Array containing each separate argument to pass to the hook's callback function.
    function wp_next_scheduled( $hook, $args = array() ) { 
    568568         *
    569569         * Pass the timestamp of the next event if it exists, false if not.
    570570         *
    571          * @since 5.0.0
     571         * @since 5.1.0
    572572         *
    573573         * @param null|bool $pre       Value to return instead. Default null to continue unscheduling the event.
    574574         * @param string    $hook      Action hook of the event.
    function wp_next_scheduled( $hook, $args = array() ) { 
    595595        /**
    596596         * Filter the next scheduled event timestamp.
    597597         *
    598          * @since 5.0.0
     598         * @since 5.1.0
    599599         *
    600600         * @param int|bool $next The UNIX timestamp when the scheduled event will next occur, or false if not found.
    601601         * @param string   $hook Action hook to execute when cron is run.
    function wp_get_schedules() { 
    828828 * @see wp_get_schedules() for available schedules.
    829829 *
    830830 * @since 2.1.0
    831  * @since 5.0.0 {@see 'get_schedule'} filter added.
     831 * @since 5.1.0 {@see 'get_schedule'} filter added.
    832832 *
    833833 * @param string $hook Action hook to identify the event.
    834834 * @param array $args Optional. Arguments passed to the event's callback function.
    function wp_get_schedule( $hook, $args = array() ) { 
    845845        /**
    846846         * Filter the schedule for a hook.
    847847         *
    848          * @since 5.0.0
     848         * @since 5.1.0
    849849         *
    850850         * @param string|bool $schedule Schedule for the hook. False if not found.
    851851         * @param string      $hook     Action hook to execute when cron is run.