[wp-trac] [WordPress Trac] #39849: Filter `nav_menu_items_{$post_type_name}_recent` passes base args, not recent

WordPress Trac noreply at wordpress.org
Sat Feb 11 20:50:37 UTC 2017


#39849: Filter `nav_menu_items_{$post_type_name}_recent` passes base args, not
recent
--------------------------+-----------------------------
 Reporter:  eclev91       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  4.7.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 On line 434 of `nav-menu.php`, the
 `nav_menu_items_{$post_type_name}_recent` filter is passing the base
 `$args` rather than the adjusted `$recent_args` set on line 418. Could be
 expected, but seemed odd to me and I ended up reapplying those arguments
 in my filter function.

 If someone can confirm this is a bug and not as expected, I'd be happy to
 attach a patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39849>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list