[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
Tue Dec 29 17:52:45 UTC 2020


#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:  Awaiting Review
Component:  Menus        |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 When a nav menu item is imported, it is given the post_date "now" rather
 than the value in the export file. There is currently no simple mechanism
 for setting the post_date for a nav menu item in wp_update_nav_menu_item,
 even though this value is useful for post_exists checks.

 This change will allow the WordPress importer to pass the export file
 post_date value through wp_update_nav_menu_item, improving performance of
 post_exists for nav menu items.

 This requires the new function resolve_post_date proposed in #52187.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52189>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list