Opened 12 years ago
Closed 12 years ago
#22331 closed defect (bug) (fixed)
show_home not working on wp_page_menu
Reported by: | brasofilo | Owned by: | lancewillett |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
As reported here, this function call doesn't returns the expected output:
wp_page_menu( array( 'show_home' => 'Hjem', 'sort_column' => 'menu_order' ) );
Looks like show_home
is being ignored. It keeps outputting "Home" instead of the custom text and even setting it as false
doesn't behave as expected.
If the filter wp_page_menu_args
is used, wp_page_menu
works correctly.
Tested in WordPress 3.4.2 and 3.5-beta2, no active plugins, using TwentyEleven.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
The culprit is
twentyeleven_page_menu_args()
(twentytwelve_page_menu_args()
in Twenty Twelve).It ignores any passed value and enforces
true
instead:http://core.trac.wordpress.org/browser/tags/3.4.2/wp-content/themes/twentyeleven/functions.php#L372
22331.patch is a fix for all three themes.