Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#2436 closed defect (bug) (fixed)

Install and upgrade show errors

Reported by: ringmaster's profile ringmaster Owned by: ringmaster's profile ringmaster
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)

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

Download all attachments as: .zip

Change History (2)

@ringmaster
20 years ago

Cleans up wp_cron()

#1 @ryan
20 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.