Ticket #2331 (closed defect (bug): fixed)
loading link-categories.php without any categories produces PHP warning
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
Change History
comment:1
davidhouse — 6 years ago
- Keywords bg|has-patch added
Thanks for yet another patch, but don't forget to bg|has-patch :)
- Keywords has-patch commit added; bg|has-patch removed
- 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.
comment:3
markjaquith — 5 years ago
- Status changed from assigned to closed
- Resolution set to fixed
(In [4341]) cast to array. fixes 2331
Note: See
TracTickets for help on using
tickets.

