[wp-trac] Re: [WordPress Trac] #5299: JS/AJAX form validation
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 1 05:38:22 GMT 2007
#5299: JS/AJAX form validation
----------------------+-----------------------------------------------------
Reporter: mdawaffe | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by ryan):
Lines 150 and 151 of admin-ajax.php have a syntax error. 150 is missing a
semi-colon and 151 seems out-of-place. I removed 151 and put a semi on 150
and everything worked as described. Big ++.
We need to return WP_Error from more of the functions used in admin-
ajax.php. Some of them still return 0 for back compat reasons. We could
add an arg to them that allows the caller to request WP_Error return.
--
Ticket URL: <http://trac.wordpress.org/ticket/5299#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list