Opened 11 years ago
Closed 11 years ago
#31257 closed enhancement (fixed)
Variable initialized with value of inappropriate type
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.2 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Everywhere in the _wp_menu_output function, the $submenu_items variable is treated like an array; so why not initialize it with array(), instead of false?
There are several ! empty( $submenu_items ) checks, and these work perfectly fine with $submenu_items being an empty array.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 31364: