[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
Mon Jan 25 01:22:21 UTC 2021
#52189: Enable wp_update_nav_menu_item to use passed values for setting post_date
-------------------------------------------------+-------------------------
Reporter: jmdodd | Owner: pento
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.7
Component: Menus | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
needs-dev-note |
-------------------------------------------------+-------------------------
Changes (by pento):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"50013" 50013]:
{{{
#!CommitTicketReference repository="" revision="50013"
Menus: Make use of `wp_resolve_post_date()` when updating menu items.
This allows a menu item `post_date` to be set to particular value, rather
than only allowing it to be set to "now". In particular, the WordPress
Importer can use this to perform faster, more accurate duplicate checks.
Props jmdodd.
Fixes #52189.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52189#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list