WordPress.org

Make WordPress Core

Ticket #21647: 21647.diff

File 21647.diff, 716 bytes (added by mfields, 20 months ago)

Allow the output of wp_page_menu() to behave like wp_nav_menu() when visitor is viewing a sub-page.

  • wp-content/themes/twentyten/style.css

     
    437437        display: block; 
    438438} 
    439439#access ul li.current_page_item > a, 
     440#access ul li.current_page_ancestor > a, 
    440441#access ul li.current-menu-ancestor > a, 
    441442#access ul li.current-menu-item > a, 
    442443#access ul li.current-menu-parent > a { 
    443444        color: #fff; 
    444445} 
    445446* html #access ul li.current_page_item a, 
     447* html #access ul li.current_page_ancestor a, 
    446448* html #access ul li.current-menu-ancestor a, 
    447449* html #access ul li.current-menu-item a, 
    448450* html #access ul li.current-menu-parent a,