[wp-trac] [WordPress Trac] #13543: menu selected page class problem

WordPress Trac wp-trac at lists.automattic.com
Wed May 26 10:56:27 UTC 2010


#13543: menu selected page class problem
--------------------------+-------------------------------------------------
 Reporter:  Angeloverona  |        Owner:  filosofo
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  3.0     
Component:  Menus         |      Version:  3.0     
 Severity:  normal        |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * keywords:  needs-patch => has-patch


Comment:

 Replying to [comment:8 kpdesign]:
 > The patch fixes the OP's issue, but there is still some existing
 functionality from '''wp_page_menu()''' missing.
 >
 > '''wp_nav_menu()''' does not add '''current_page_parent''' to the blog
 link when viewing a single post, a category page, a dated archive page or
 the search results page.

 Basically if there's a static home page and the current query is not for
 another page, `wp_page_menu()` gives the static home page page the
 `current_page_parent` class.

 I think that's questionable behavior, but in the interests of backwards
 compatibility, `current_page_parent-back-compat.13543.diff` does the same.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13543#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list