[wp-trac] [WordPress Trac] #21652: wp_update_nav_menu_item returns false instead of WP_Error for non-existent menu items

WordPress Trac noreply at wordpress.org
Tue Feb 25 00:50:38 UTC 2014


#21652: wp_update_nav_menu_item returns false instead of WP_Error for non-existent
menu items
------------------------------+-----------------------------
 Reporter:  mltsy             |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.9
Component:  Menus             |     Version:  3.4.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27251"]:
 {{{
 #!CommitTicketReference repository="" revision="27251"
 Consistently return a WP_Error object in case of an error in
 wp_update_nav_menu_item().

 props bootsz, ocean90.
 fixes #21652.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21652#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list