Can’t “delete all users from list”
-
When I attempt to delete all spam users found, nothing happens except for a Javascript error in the console:
Uncaught ReferenceError: data is not defined
at ct_delete_all_users (cleantalk-users-checkspam.js:322)
at HTMLButtonElement.<anonymous> (cleantalk-users-checkspam.js:497)
at HTMLButtonElement.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.3.2:3)
at HTMLButtonElement.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.3.2:3)This is the link it’s complaining about:
function ct_delete_all_users( e ){jQuery(‘.’ + e.target.id).addClass(‘disabled’);
jQuery(‘.spinner’).css(‘visibility’, ‘visible’);
jQuery.ajax({
type: “POST”,
url: ajaxurl,
data: data, <——-It’s quite a big list, could that be why?
- The topic ‘Can’t “delete all users from list”’ is closed to new replies.