mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Capture last db error. Pass it in WP_Error data when term inserts fail. Fix typo in WP_Ajax_Response
git-svn-id: https://develop.svn.wordpress.org/trunk@7431 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -764,7 +764,7 @@ class WP_Ajax_Response {
|
||||
$response .= "<wp_error_data code='$code'$class>";
|
||||
|
||||
if ( is_scalar($error_data) ) {
|
||||
$response .= "<![CDATA[$v]]>";
|
||||
$response .= "<![CDATA[$error_data]]>";
|
||||
} elseif ( is_array($error_data) ) {
|
||||
foreach ( $error_data as $k => $v )
|
||||
$response .= "<$k><![CDATA[$v]]></$k>";
|
||||
|
||||
Reference in New Issue
Block a user