Opened 7 years ago
Closed 6 years ago
#45319 closed defect (bug) (fixed)
get_theme_mod() declaration of return type
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 4.9.8 |
Component: | Themes | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
As of WP 4.9.8 get_theme_mod()
declares @return string
. If you query for navigation menu locations using get_theme_mod('nav_menu_locations')
you get back an array. Modern IDEs (like PhpStorm) complain if you start to modify this array because they expect a string. The return value should be changed to mixed
.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 44613: