[wp-trac] [WordPress Trac] #30983: Missing Hook in wp_update_nav_menu_item function
WordPress Trac
noreply at wordpress.org
Sun Feb 15 18:39:33 UTC 2015
#30983: Missing Hook in wp_update_nav_menu_item function
---------------------------+------------------------------
Reporter: WPThemeTrends | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------------------
Comment (by tyxla):
Agree with @MikeHansenMe on this one - a new hook here would be the best
choice for clarity.
Also, I'm updating the patch, as the previous one will only call the hook
if the new menu item creation has failed for some reason. Contrary to that
behavior, the `wp_add_nav_menu_item` hook should be called only if the
menu item creation was successful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30983#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list