[wp-trac] [WordPress Trac] #17180: Invalid published date insertion in posts

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 19 21:58:22 UTC 2012


#17180: Invalid published date insertion in posts
---------------------------------+-----------------------
 Reporter:  hew                  |       Owner:  westi
     Type:  defect (bug)         |      Status:  reopened
 Priority:  high                 |   Milestone:  3.5
Component:  Date/Time            |     Version:
 Severity:  major                |  Resolution:
 Keywords:  3.5-early has-patch  |
---------------------------------+-----------------------

Comment (by jkudish):

 Replying to [comment:21 nacin]:
 > Also, wp_insert_post() can return 0 depending on $wp_error, so we need
 to avoid returning WP_Error in that case.

 What would be a better return? false? 0?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17180#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list