[wp-trac] [WordPress Trac] #14551: menu item : current_page_parent : issue with Front page displays

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 6 13:04:43 UTC 2010


#14551: menu item : current_page_parent : issue with Front page displays
------------------------------+---------------------------------------------
 Reporter:  hughestm@…        |       Owner:                                          
     Type:  defect (bug)      |      Status:  new                                     
 Priority:  normal            |   Milestone:  Awaiting Review                         
Component:  Menus             |     Version:  3.0.1                                   
 Severity:  normal            |    Keywords:  current_page_parent, menu, posts on page
------------------------------+---------------------------------------------

Comment(by hughestm@…):

 Possible solution:
 File: wp-includes/nav-menu-template.php

 Add after line 260:
 $front_page_displays = (int) get_option( 'show_on_front' );
 if($front_page_display == 'posts'){$home_page_id=0;}

 This checks to make sure the first toggle is set to have page or posts on
 the front.  If posts, then reset $home_page_id (page_for_posts) to 0
 (value when drop down is set to "select").

 I know there are possibly a few other locations you could add similar
 logic.  I'm not sure what else the $home_page_id (page_for_posts) value
 would be used for.

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


More information about the wp-trac mailing list