[wp-trac] [WordPress Trac] #13793: Missing child_of parameter to wp_get_nav_menu_items
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 11 23:06:06 UTC 2010
#13793: Missing child_of parameter to wp_get_nav_menu_items
-------------------------+--------------------------------------------------
Reporter: DreadLox | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Menus | Version: 3.0
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by DreadLox):
What is wrong committing it for Wordpress 3.0 release? It is just a few
lines of code and it uses the child_of parameter the same way
wp_list_pages does, without doing additional SQL queries.
Sorry, but the fact that "the menu implementation is intentionally a first
step into the world of menus" is not a good reason to provide less to
wordpress devs/users whereas the code is ready to provide more.
Isn't the new menu system supposed to be an improvement over the old way
of using pages hierarchy? If so, it shouldn't bring any regression
compared to the old system, and should _at least_ include the same set of
functionality.
If something is wrong with my code, tell me, I'll understand it.
Also what my patch provides can't be achieved using a plugin. Maybe you
could just add an action/filter, so such a functionality could be
implemented using a plugin.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13793#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list