[wp-trac] Re: [WordPress Trac] #2395: Minor addition to _page_level_out

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 11 16:37:25 GMT 2007


#2395: Minor addition to _page_level_out
-------------------------+--------------------------------------------------
 Reporter:  anselm1109   |        Owner:  markjaquith 
     Type:  enhancement  |       Status:  assigned    
 Priority:  normal       |    Milestone:  2.5 (future)
Component:  Template     |      Version:  2.0         
 Severity:  trivial      |   Resolution:              
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by chmac):

 * cc: chmac (added)

Comment:

 I've added two patches (against source:trunk/wp-
 includes/classes.php at 6021). The first one adds a recursive function and
 adds class="current_page_parent" and class="current-cat-parent" to all
 parents (including grandparents, great-grandparents etc) of the current
 page or category.

 The second patch includes the first one, but also adds a new
 class="current_page_parent_lN" and class="current-cat-parent-lN" where N
 is the number of levels above the current page, from 0 upwards. For
 example, current_page_parent_l0 means the current page, current-cat-
 parent-l1 means the current category's parent, current_page_parent_l2
 means the current page's grandparent, and so on.

 I also propose to change the milestone to 2.4 now that a patch is
 available. I'll discuss this on the wp-hackers mailing list.

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


More information about the wp-trac mailing list