Changeset 43078
- Timestamp:
- 05/02/2018 12:14:57 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/js/xfn.js
r43075 r43078 86 86 } 87 87 88 function on_erasure_failure( textStatus, error) {88 function on_erasure_failure() { 89 89 set_action_state( $action, 'remove_personal_data_failed' ); 90 90 appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] ); … … 93 93 function do_next_erasure( eraserIndex, pageIndex ) { 94 94 $.ajax( { 95 url: ajaxurl,95 url: window.ajaxurl, 96 96 data: { 97 97 action: 'wp-privacy-erase-personal-data', … … 99 99 id: requestID, 100 100 page: pageIndex, 101 security: nonce ,101 security: nonce 102 102 }, 103 103 method: 'post' 104 104 } ).done( function( response ) { 105 105 if ( ! response.success ) { 106 on_erasure_failure( 'error', response.data);106 on_erasure_failure(); 107 107 return; 108 108 } … … 126 126 } 127 127 } 128 } ).fail( function( jqxhr, textStatus, error) {129 on_erasure_failure( textStatus, error);128 } ).fail( function() { 129 on_erasure_failure(); 130 130 } ); 131 131 } … … 135 135 136 136 do_next_erasure( 1, 1 ); 137 } ) 137 } ); 138 138 } );
Note: See TracChangeset
for help on using the changeset viewer.