Make WordPress Core

Changeset 42989


Ignore:
Timestamp:
04/19/2018 12:22:11 AM (7 years ago)
Author:
jorbin
Message:

Privacy: Fix JSHint errors

Introduced in [42986].

See #43440.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r42961 r42989  
    1414    "devDependencies": {
    1515        "autoprefixer": "^6.5.1",
    16         "grunt": "~0.4.5",
     16        "grunt": "^0.4.5",
    1717        "grunt-banner": "^0.6.0",
    1818        "grunt-contrib-clean": "~1.0.0",
     
    3535        "grunt-rtlcss": "~2.0.1",
    3636        "grunt-sass": "2.0.0",
     37        "grunt-webpack": "^3.0.2",
    3738        "ink-docstrap": "^1.3.0",
    38         "grunt-webpack": "^3.0.2",
    3939        "matchdep": "~1.0.0",
    4040        "webpack": "^3.6.0",
  • trunk/src/wp-admin/js/xfn.js

    r42986 r42989  
    9191        }
    9292
    93         function on_erasure_failure( textStatus, error ) {
     93        function on_erasure_failure() {
    9494            set_action_state( $action, 'remove_personal_data_failed' );
    9595            appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] );
     
    9898        function do_next_erasure( eraserIndex, pageIndex ) {
    9999            $.ajax( {
    100                 url: ajaxurl,
     100                url: window.ajaxurl,
    101101                data: {
    102102                    action: 'wp-privacy-erase-personal-data',
     
    104104                    id: requestID,
    105105                    page: pageIndex,
    106                     security: nonce,
     106                    security: nonce
    107107                },
    108108                method: 'post'
    109109            } ).done( function( response ) {
    110110                if ( ! response.success ) {
    111                     on_erasure_failure( 'error', response.data );
     111                    on_erasure_failure();
    112112                    return;
    113113                }
     
    131131                    }
    132132                }
    133             } ).fail( function( jqxhr, textStatus, error ) {
    134                 on_erasure_failure( textStatus, error );
     133            } ).fail( function() {
     134                on_erasure_failure();
    135135            } );
    136136        }
     
    140140
    141141        do_next_erasure( 1, 1 );
    142     } )
     142    } );
    143143} );
Note: See TracChangeset for help on using the changeset viewer.