Fixing bug in ajaxEndpoint.php that affects some WordPress users