Opened 7 years ago

Closed 7 years ago

#2436 closed defect (bug) (fixed)

Install and upgrade show errors

Reported by: ringmaster Owned by: ringmaster
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0.1
Severity: normal Keywords: bg|has-patch
Cc:

Description

From wp-testers:

Actually see this in both install.php and upgrade.php using 2.1-alpha1

Warning: array_keys() [function.array-keys]: The first argument should be an
array in C:\xampp\htdocs\wp21\wp-includes\functions.php on line 2360

Warning: array_shift() [function.array-shift]: The argument should be an
array in C:\xampp\htdocs\wp21\wp-includes\functions.php on line 2360

Warning: Invalid argument supplied for foreach() in
C:\xampp\htdocs\wp21\wp-includes\functions.php on line 2365

Michael E. Hancock

Since wp_cron() is called from shutdown, it executes during the install and upgrade. If the "crons" option doesn't already exist, it generates errors.

The attached patch cleans things up.

Attachments (1)

functions.php.diff (565 bytes) - added by ringmaster 7 years ago.
Cleans up wp_cron()

Download all attachments as: .zip

Change History (2)

Cleans up wp_cron()

comment:1   ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3522]) wp_cron() array warning fix ups from Owen. fixes #2436

Note: See TracTickets for help on using tickets.