[wp-trac] [WordPress Trac] #11430: metaWeblog.newPost no categories saved if one is not recognised

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 17 10:14:14 UTC 2010


#11430: metaWeblog.newPost no categories saved if one is not recognised
--------------------------+-------------------------------------------------
 Reporter:  Fubra         |       Owner:  josephscott
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  XML-RPC       |     Version:  2.9        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by dd32):

 Can someone provide a client or code through which I can verify/test this?

 I personally cannot see how the proposed patch will fix anything, Nor can
 i reproduce it using a client (Selecting multiple categories, deleting a
 few of them via MAnage Categories, Then submitting the post).

 On a code level, get_cat_ID() will return 0 for a non-existant category,
 wp_insert_post() completely ignores the content of the array, and
 wp_set_object_terms() will skip "empty" terms, 0 being an empty term.

 So before i close as worksforme, can someone provide a way to verify this?

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


More information about the wp-trac mailing list