[wp-trac] [WordPress Trac] #41227: Ability to pass post_modified and post_modified_gmt to wp_insert_post
WordPress Trac
noreply at wordpress.org
Fri May 18 21:11:55 UTC 2018
#41227: Ability to pass post_modified and post_modified_gmt to wp_insert_post
--------------------------------------+------------------------------
Reporter: shamim51 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by JPry):
* keywords: has-patch => has-patch has-unit-tests
* version: => trunk
* type: enhancement => defect (bug)
Comment:
I believe this issue should actually be classified as a bug. According to
the docblock for {{{wp_insert_post()}}}, the values for
{{{post_modified}}} and {{{post_modified_gmt}}} should already be
accepted.
I'm uploading a refreshed patch that includes unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41227#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list