Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#2313 closed defect (bug) (fixed)

classes.php : missing test before a foreach

Reported by: Ozh Owned by: ryan
Priority: normal Milestone:
Component: General Version: 2.0
Severity: trivial Keywords: foreach warning classes pages bg|has-patch
Cc:

Description

line 372 of wp-includes/classes.php we have "$all_page_ids = get_all_page_ids();" then we go on with a foreach loop that will obviously return a nasty warning if used when there is no page created.

Attachments (1)

2313.diff (613 bytes) - added by davidhouse 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1   ryan7 years ago

  • Owner changed from anonymous to ryan
  • Keywords bg|has-patch added

comment:3   ryan7 years ago

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

(In [3467]) Make sure we have an array. Props Ozh and David House. fixes #2313

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.