[wp-trac] [WordPress Trac] #52187: Create function to resolve a post date from post_date and post_date_gmt strings

WordPress Trac noreply at wordpress.org
Tue Dec 29 17:18:14 UTC 2020


#52187: Create function to resolve a post date from post_date and post_date_gmt
strings
-------------------------------+-----------------------------
 Reporter:  jmdodd             |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:  has-patch
  Focuses:                     |
-------------------------------+-----------------------------
 This change breaks out the code to resolve a post date from passed
 post_date and post_date_gmt strings. This will allow use of the new
 function in other post type-specific inserts, such as found in
 wp_update_nav_menu_item.

 By doing so, imported nav menu items can start to retain the same post
 date as found in their export file, improving performance of post_exists
 checks on existing nav menu items.

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


More information about the wp-trac mailing list