Make WordPress Core

Changeset 43078


Ignore:
Timestamp:
05/02/2018 12:14:57 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Fix JSHint errors.

Introduced in [42986].

Props jorbin.
Merges [42989] to the 4.9 branch.
See #43440.

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  
    8686                }
    8787
    88                 function on_erasure_failure( textStatus, error ) {
     88                function on_erasure_failure() {
    8989                        set_action_state( $action, 'remove_personal_data_failed' );
    9090                        appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] );
    … …  
    9393                function do_next_erasure( eraserIndex, pageIndex ) {
    9494                        $.ajax( {
    95                                 url: ajaxurl,
     95                                url: window.ajaxurl,
    9696                                data: {
    9797                                        action: 'wp-privacy-erase-personal-data',
    … …  
    9999                                        id: requestID,
    100100                                        page: pageIndex,
    101                                         security: nonce,
     101                                        security: nonce
    102102                                },
    103103                                method: 'post'
    104104                        } ).done( function( response ) {
    105105                                if ( ! response.success ) {
    106                                         on_erasure_failure( 'error', response.data );
     106                                        on_erasure_failure();
    107107                                        return;
    108108                                }
    … …  
    126126                                        }
    127127                                }
    128                         } ).fail( function( jqxhr, textStatus, error ) {
    129                                 on_erasure_failure( textStatus, error );
     128                        } ).fail( function() {
     129                                on_erasure_failure();
    130130                        } );
    131131                }
    … …  
    135135
    136136                do_next_erasure( 1, 1 );
    137         } )
     137        } );
    138138} );
Note: See TracChangeset for help on using the changeset viewer.