Opened 11 years ago
Closed 11 years ago
#31257 closed enhancement (fixed)
Variable initialized with value of inappropriate type
| Reported by: | ipm-frommen | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 31364: