1function ajax_call_no_response( action , data, nonce) { 2 jQuery.ajax( 3 { 4 type:"POST", 5 url: ajax.url, 6 data: { 7 action: action, 8 data: data, 9 nonce: nonce 10 } 11 } 12 ); 13} 14 15function ajax_call_with_response( action , data, nonce, user_id) { 16 jQuery.ajax( 17 { 18 type:"POST", 19 url: ajax.url, 20 data: { 21 action: action, 22 data: data, 23 nonce: nonce, 24 user_id: user_id 25 }, 26 success:function( data ) { 27 jQuery( document ).ready( 28 function ($) { 29 if (data === 'login_error') { 30 $( "#wpsec_2fa_2sv_login_code_error_message" ).removeClass( 'wpsec_2fa_hidden' ); 31 } else if (data === 'admin_mail_sent') { 32 $( "#wpsec_2fa_mail_code_info" ).removeClass( 'wpsec_2fa_hidden' ); 33 } else if (data === 'expired_code_login_error') { 34 $( "#wpsec_2fa_2sv_login_code_expired_message" ).removeClass( 'wpsec_2fa_hidden' ); 35 } else { 36 top.location.replace( admin.url ); 37 } 38 } 39 ); 40 41 }, 42 } 43 ); 44}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.