[wp-trac] [WordPress Trac] #17938: Prevent fatal errors caused by admin-ajax.php's use of wp_insert_term()

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 30 18:19:28 UTC 2012


#17938: Prevent fatal errors caused by admin-ajax.php's use of wp_insert_term()
----------------------------+---------------------
 Reporter:  mdawaffe        |       Owner:  westi
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  3.4
Component:  Administration  |     Version:  3.2
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |
----------------------------+---------------------
Changes (by ryan):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [19792]:
 {{{
 #!CommitTicketReference repository="" revision="19792"
 Check the return of wp_insert_term() for WP_Error or array. Prevents fatal
 erros and failure to add categories when adding terms via ajax. Props
 mdawaffe. fixes #17938 #17939
 }}}

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


More information about the wp-trac mailing list