[wp-trac] [WordPress Trac] #61799: Calling wp_update_nav_menu_item() with an invalid taxonomy causes a fatal error
WordPress Trac
noreply at wordpress.org
Thu Aug 1 06:01:57 UTC 2024
#61799: Calling wp_update_nav_menu_item() with an invalid taxonomy causes a fatal
error
--------------------------+------------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Import | Version: 5.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by dd32):
Replying to [comment:2 mukesh27]:
> If it return error then it should return null instead of `$term`
It is 'weird' that it returns an empty string in other cases of error, but
not this one.
But given it's documented as returning an empty string, and has done so
since [5726] it's not worth changing IMHO.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61799#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list