[wp-trac] [WordPress Trac] #22331: show_home not working on wp_page_menu

WordPress Trac noreply at wordpress.org
Wed Oct 31 12:49:36 UTC 2012


#22331: show_home not working on wp_page_menu
-----------------------------+--------------------------
 Reporter:  brasofilo        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 As reported [http://wordpress.stackexchange.com/q/70551/12615 here], this
 function call doesn't returns the expected output:[[BR]]
 '''`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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22331>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list