[wp-trac] [WordPress Trac] #52189: Enable wp_update_nav_menu_item to use passed values for setting post_date
WordPress Trac
noreply at wordpress.org
Thu Jan 7 21:46:09 UTC 2021
#52189: Enable wp_update_nav_menu_item to use passed values for setting post_date
--------------------------------------+---------------------
Reporter: jmdodd | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.7
Component: Menus | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Changes (by jmdodd):
* keywords: has-patch => has-patch has-unit-tests
Comment:
52189.1.diff avoids insert failures and defaults to using "now", as
previously wp_update_nav_menu_item would not fail because of a bad date.
I've added unit tests to assert this behavior.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52189#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list