[wp-trac] [WordPress Trac] #36597: Remove post_modified and post_modified_gmt variables from wp_insert_post inline documentation
WordPress Trac
noreply at wordpress.org
Tue Apr 19 19:12:20 UTC 2016
#36597: Remove post_modified and post_modified_gmt variables from wp_insert_post
inline documentation
-------------------------------+-----------------------------
Reporter: 5um17 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: docs |
-------------------------------+-----------------------------
`$post_modified` and `$post_modified_gmt` variables are inactive when
passed in `wp_insert_post` because `wp_insert_post` using `current_time`
{{{#!php
if ( $update || '0000-00-00 00:00:00' == $post_date ) {
$post_modified = current_time( 'mysql' );
$post_modified_gmt = current_time( 'mysql', 1 );
} else {
$post_modified = $post_date;
$post_modified_gmt = $post_date_gmt;
}
}}}
So the inline documentation needs to be updated which leading to
confusions!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36597>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list