[wp-trac] [WordPress Trac] #5342: Output WP_Error message when
adding categories via AJAX
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 12 05:44:15 GMT 2007
#5342: Output WP_Error message when adding categories via AJAX
---------------------+------------------------------------------------------
Reporter: ryan | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4
Component: General | Version:
Severity: normal | Keywords: ajax category error
---------------------+------------------------------------------------------
Currently, adding categories via AJAX output a generic error message when
something goes wrong in wp_insert_category() since that function does not
return WP_Error for back-compat reasons. Let's add an option to
wp_insert_category() that tells it to return WP_Error instead of 0.
--
Ticket URL: <http://trac.wordpress.org/ticket/5342>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list