Opened 20 years ago
Closed 20 years ago
#2436 closed defect (bug) (fixed)
Install and upgrade show errors
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1 | Priority: | normal |
| Severity: | normal | Version: | 2.0.1 |
| Component: | Administration | Keywords: | bg|has-patch |
| Focuses: | 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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Cleans up wp_cron()