[wp-trac] Re: [WordPress Trac] #5680: wp-app.php handles "published" element incorrectly on PUT

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 22 06:45:04 GMT 2008


#5680: wp-app.php handles "published" element incorrectly on PUT
-----------------------+----------------------------------------------------
 Reporter:  tvachon    |        Owner:  westi   
     Type:  defect     |       Status:  reopened
 Priority:  normal     |    Milestone:  2.5     
Component:  General    |      Version:  2.5     
 Severity:  normal     |   Resolution:          
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Comment (by ryan):

 Looks like wp_update_post() always sets the modified times to the current
 time when updating.

 {{{
         if ( $update ) {
                 $post_modified     = current_time( 'mysql' );
                 $post_modified_gmt = current_time( 'mysql', 1 );
         }
 }}}

 Seems that passing post_modified and post_modified_gmt to wp_update_post()
 wouldn't actually do anything.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5680#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list