diff --git src/js/_enqueues/lib/ajax-response.js src/js/_enqueues/lib/ajax-response.js
index b764823742..945b63dbf6 100644
|
|
window.wpAjax = jQuery.extend( { |
27 | 27 | var th = jQuery(this), child = jQuery(this.firstChild), response; |
28 | 28 | response = { action: th.attr('action'), what: child.get(0).nodeName, id: child.attr('id'), oldId: child.attr('old_id'), position: child.attr('position') }; |
29 | 29 | response.data = jQuery( 'response_data', child ).text(); |
30 | | if ( jQuery( 'body' ).hasClass( 'edit-tags-php' ) ) { |
| 30 | if ( jQuery( 'supplemental', child ).children()['data_is_success_message'] ) { |
31 | 31 | successmsg += response.data; |
32 | 32 | } |
33 | 33 | response.supplemental = {}; |
diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
index 191e5b54dd..db52449341 100644
|
|
function wp_ajax_add_tag() { |
1111 | 1111 | $message = $messages['_item'][1]; |
1112 | 1112 | } |
1113 | 1113 | |
| 1114 | $data_is_success_message = true; |
| 1115 | |
1114 | 1116 | $x->add( |
1115 | 1117 | array( |
1116 | 1118 | 'what' => 'taxonomy', |
1117 | 1119 | 'data' => $message, |
1118 | | 'supplemental' => compact( 'parents', 'noparents' ), |
| 1120 | 'supplemental' => compact( 'parents', 'noparents', 'data_is_success_message' ), |
1119 | 1121 | ) |
1120 | 1122 | ); |
1121 | 1123 | |