WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1827 closed defect (bug) (fixed)

foreach error on edit.php line 102

Reported by: markjaquith Owned by: markjaquith
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: Administration Keywords: bg|squashed bg|commit bg|has-patch
Focuses: Cc:

Description

Like the title says... running foreach on something that doesn't aways return an array.

Attachments (1)

edit.php.diff (931 bytes) - added by markjaquith 16 years ago.
Patch for WP 1.6 SVN

Download all attachments as: .zip

Change History (4)

@markjaquith
16 years ago

Patch for WP 1.6 SVN

#1 @markjaquith
16 years ago

  • Keywords bg|squashed bg|commit bg|has-patch added
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

That patch should do the trick. Makes sure that we have a result before going through the foreach loop.

#2 @ryan
16 years ago

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

(In [3032]) Don't loop over empty list. Props Mark Jaquith. fixes #1827

#3 @(none)
15 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.