Ticket #2331 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: doit-cu Assigned to: mdawaffe
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: trivial Keywords: has-patch commit
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

no-link-categories.diff (2.5 kB) - added by doit-cu on 01/24/06 03:37:35.
2331.diff (0.6 kB) - added by mdawaffe on 10/04/06 18:04:47.
array

Change History

01/24/06 03:37:35 changed by doit-cu

  • attachment no-link-categories.diff added.

01/24/06 21:32:50 changed by davidhouse

  • keywords set to bg|has-patch.

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

10/04/06 18:04:47 changed by mdawaffe

  • attachment 2331.diff added.

array

10/04/06 18:05:53 changed by mdawaffe

  • keywords changed from bg|has-patch to has-patch commit.
  • owner changed from anonymous to mdawaffe.
  • status changed from new to assigned.
  • milestone set to 2.0.5.

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

10/04/06 22:17:29 changed by markjaquith

  • status changed from assigned to closed.
  • resolution set to fixed.

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

11/30/06 19:41:51 changed by

  • milestone deleted.

Milestone 2.0.5 deleted