WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2331 closed defect (bug) (fixed)

loading link-categories.php without any categories produces PHP warning

Reported by: doit-cu Owned by: mdawaffe
Milestone: Priority: normal
Severity: trivial Version: 2.0
Component: Administration Keywords: has-patch commit
Focuses: Cc:

Description

Realizing that it is not standard behavior to have no link categories, this error message can quite easily be suppressed. Patch on the way.

Error:
Warning: Invalid argument supplied for foreach() in /var/www/people/htdocs/wordpress/wp-admin/link-categories.php on line 305

Attachments (2)

no-link-categories.diff (2.5 KB) - added by doit-cu 9 years ago.
2331.diff (569 bytes) - added by mdawaffe 9 years ago.
array

Download all attachments as: .zip

Change History (6)

@doit-cu9 years ago

comment:1 @davidhouse9 years ago

  • Keywords bg|has-patch added

Thanks for yet another patch, but don't forget to bg|has-patch :)

@mdawaffe9 years ago

array

comment:2 @mdawaffe9 years ago

  • Keywords has-patch commit added; bg|has-patch removed
  • Milestone set to 2.0.5
  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

Not an issue for trunk. Commit to branches/2.0.

comment:3 @markjaquith9 years ago

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

(In [4341]) cast to array. fixes 2331

comment:4 @anonymous9 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.