WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 months ago

#14884 closed enhancement (fixed)

Add a filter inside admin-ajax.php for walker

Reported by: dmad Owned by:
Milestone: 3.4 Priority: normal
Severity: normal Version: 3.0.1
Component: Menus Keywords:
Focuses: Cc:

Description

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.

Change History (2)

comment:1 nacin3 years ago

  • Component changed from General to Menus
  • Keywords needs-patch added; menu admin-ajax walker removed
  • Milestone changed from Awaiting Review to Future Release
  • Type changed from feature request to enhancement

comment:2 johnbillion3 months ago

  • Keywords needs-patch removed
  • Milestone changed from Future Release to 3.4
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r20072

Note: See TracTickets for help on using tickets.