#15094 closed defect (bug) (fixed)
Redundant function_exists() check in wp_nav_menu()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Menus | Version: | |
| Severity: | minor | Keywords: | |
| Cc: |
Description
When the 'fallback_cb' arg is checked, it calls function_exists() right before is_callable(), which not only is redundant, but also prevents passing a class method as a callback.
Attachments (1)
Change History (5)
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Ok, it doesn't prevent passing a class method, since it's ORed, but it's still redundant.