info array from _get_cron_array(). * @return array An upgraded cron info array. */ function _upgrade_cron_array( $cron ) { if ( isset( $cron['version'] ) && 2 === $cron['version'] ) { return $cron; } $new_cron = array(); foreach ( (array) $cron as $timestamp => $hooks ) { foreach ( (array) $hooks as $hook => $args ) { $key = md5( serialize( $args['args'] ) ); $new_cron[ $timestamp ][ $hook ][ $key ] = $args; } } $new_cron['version'] = 2; update_option( 'cron', $new_cron ); return $new_cron; }
Fatal error: Uncaught Error: Call to undefined function wp_next_scheduled() in /home/sportuga/public_html/wp-includes/class-wp-recovery-mode.php:99 Stack trace: #0 /home/sportuga/public_html/wp-settings.php(509): WP_Recovery_Mode->initialize() #1 /home/sportuga/public_html/wp-config.php(102): require_once('/home/sportuga/...') #2 /home/sportuga/public_html/wp-load.php(50): require_once('/home/sportuga/...') #3 /home/sportuga/public_html/wp-blog-header.php(13): require_once('/home/sportuga/...') #4 /home/sportuga/public_html/index.php(17): require('/home/sportuga/...') #5 {main} thrown in /home/sportuga/public_html/wp-includes/class-wp-recovery-mode.php on line 99