[wp-trac] [WordPress Trac] #14884: Add a filter inside admin-ajax.php for walker

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 16 14:01:31 UTC 2010


#14884: Add a filter inside admin-ajax.php for walker
-----------------------------+----------------------------------------------
 Reporter:  dmad             |       Owner:                          
     Type:  feature request  |      Status:  new                     
 Priority:  normal           |   Milestone:  Awaiting Review         
Component:  General          |     Version:  3.0.1                   
 Severity:  normal           |    Keywords:  menu, admin-ajax, walker
-----------------------------+----------------------------------------------
 I'm trying to extend the Wordpress menu system and i can't get the things
 working from start because inside admin-ajax.php on line 841, there is no
 filter. I'm talking about this piece of code

 {{{
 if ( ! empty( $menu_items ) ) {
                 $args = array(
                         'after' => '',
                         'before' => '',
                         'link_after' => '',
                         'link_before' => '',
                         'walker' => new Walker_Nav_Menu_Edit,
                 );
                 echo walk_nav_menu_tree( $menu_items, 0, (object) $args );
         }
 }}}

 The Walker_Nav_Menu_Edit class is applied by default.
 If someone can add a filter, it would be great for all developers.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14884>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list