Make WordPress Core

Ticket #53940: 53940.patch

File 53940.patch, 645 bytes (added by thakkarhardik, 2 years ago)
  • src/wp-includes/cron.php

    diff --git a/src/wp-includes/cron.php b/src/wp-includes/cron.php
    index 83cbb8b9d02306d20c2babaa2a59a1f95d337ad4..4ca5363d0458f50c872672438ff00d35e7b1ed97 100644
    a b function wp_get_ready_cron_jobs() { 
    11641164 * @since 2.1.0
    11651165 * @access private
    11661166 *
    1167  * @return array[]|false Array of cron info arrays on success, false on failure.
     1167 * @return array[] Array of cron info arrays if available.
    11681168 */
    11691169function _get_cron_array() {
    11701170        $cron = get_option( 'cron' );
    11711171        if ( ! is_array( $cron ) ) {
    1172                 return false;
     1172                return array();
    11731173        }
    11741174
    11751175        if ( ! isset( $cron['version'] ) ) {