Opened 2 months ago
Last modified 2 months ago
#23767 new enhancement
remove_menu_page: Check for existing menu items
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Warnings/Notices | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch close |
| Cc: |
Description
This error appears in my error log:
PHP Warning: Invalid argument supplied for foreach() in /www/htdocs/wp-admin/includes/plugin.php on line 1290
The if-empty patch is attached.
Attachments (1)
Change History (4)
sergej.mueller — 2 months ago
comment:1
SergeyBiryukov — 2 months ago
- Keywords close added
- Type changed from feature request to enhancement
- Version changed from trunk to 3.5
comment:2
sergej.mueller — 2 months ago
Any foreach command should be checked "if empty".
comment:3
SergeyBiryukov — 2 months ago
Note: See
TracTickets for help on using
tickets.

Looks like there are only two ways to get this warning:
Both are developer errors, so the developer should see the warning.