[wp-trac] [WordPress Trac] #20462: Shouldn't have to pass 'post_category' to wp_update_post()

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 16 23:53:20 UTC 2012


#20462: Shouldn't have to pass 'post_category' to wp_update_post()
--------------------------+------------------------------
 Reporter:  scribu        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  minor         |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by scribu):

 * severity:  normal => minor


Comment:

 So, after a closer look, this is a problem only when using
 wp_update_post() on a new post:

 {{{
 wp_update_post( array( 'ID' => 0, 'post_title' => 'some page' ) );
 }}}

 So, do what you will with the patch.

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


More information about the wp-trac mailing list