[wp-trac] Re: [WordPress Trac] #9082: wp_page_menu, home page link isn't use link_before and link_after arguments

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 5 01:10:20 GMT 2009


#9082: wp_page_menu, home page link isn't use link_before and link_after arguments
--------------------------+-------------------------------------------------
 Reporter:  satranc       |        Owner:  anonymous 
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:  2.8       
Component:  General       |      Version:            
 Severity:  normal        |   Resolution:  worksforme
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by sivel):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 Your code produced the following results for me:

 {{{
 <div class="menu">
         <ul>
                 <li class="current_page_item">
                         <a href="http://wordpress.trunk">
                                 <span>Home</span>
                         </a>
                 </li>
                 [snip]
         </ul>
 </div>
 }}}

 This is the code I used, since your code lost formatting in the
 description:
 {{{
 function aa_wp_page_menu_args($args) {
         $args['link_before']='<span>';
         $args['link_after']='</span>';
         return $args;
 }
 add_filter('wp_page_menu_args','aa_wp_page_menu_args');
 }}}

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


More information about the wp-trac mailing list