[wp-trac] Re: [WordPress Trac] #5342: Output WP_Error message when
adding categories via AJAX
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 12 05:45:12 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 | Resolution:
Keywords: ajax category error |
---------------------------------+------------------------------------------
Old description:
> 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.
New description:
Currently, adding categories via AJAX outputs a generic error message when
something goes wrong in wp_insert_category() since that function does not
return WP_Error. Let's add an option to wp_insert_category() that tells
it to return WP_Error instead of 0. We must maintain returning 0 by
default for back-compat reasons.
--
Ticket URL: <http://trac.wordpress.org/ticket/5342#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list