mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Privacy: Fix JSHint errors
Introduced in [42986]. See #43440. git-svn-id: https://develop.svn.wordpress.org/trunk@42989 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -90,25 +90,25 @@ jQuery( document ).ready( function( $ ) {
|
||||
appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );
|
||||
}
|
||||
|
||||
function on_erasure_failure( textStatus, error ) {
|
||||
function on_erasure_failure() {
|
||||
set_action_state( $action, 'remove_personal_data_failed' );
|
||||
appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] );
|
||||
}
|
||||
|
||||
function do_next_erasure( eraserIndex, pageIndex ) {
|
||||
$.ajax( {
|
||||
url: ajaxurl,
|
||||
url: window.ajaxurl,
|
||||
data: {
|
||||
action: 'wp-privacy-erase-personal-data',
|
||||
eraser: eraserIndex,
|
||||
id: requestID,
|
||||
page: pageIndex,
|
||||
security: nonce,
|
||||
security: nonce
|
||||
},
|
||||
method: 'post'
|
||||
} ).done( function( response ) {
|
||||
if ( ! response.success ) {
|
||||
on_erasure_failure( 'error', response.data );
|
||||
on_erasure_failure();
|
||||
return;
|
||||
}
|
||||
var responseData = response.data;
|
||||
@@ -130,8 +130,8 @@ jQuery( document ).ready( function( $ ) {
|
||||
on_erasure_done_success();
|
||||
}
|
||||
}
|
||||
} ).fail( function( jqxhr, textStatus, error ) {
|
||||
on_erasure_failure( textStatus, error );
|
||||
} ).fail( function() {
|
||||
on_erasure_failure();
|
||||
} );
|
||||
}
|
||||
|
||||
@@ -139,5 +139,5 @@ jQuery( document ).ready( function( $ ) {
|
||||
set_action_state( $action, 'remove_personal_data_processing' );
|
||||
|
||||
do_next_erasure( 1, 1 );
|
||||
} )
|
||||
} );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user