Forum Replies Created

Viewing 1 replies (of 1 total)
  • The problem in my case is in wp-content/plugins/recaptcha-in-wp-comments-form/js/recaptcha.js here:

    var griwpcProcessAjaxResponse = function( ajaxResponse ) {
    	if ( ( ajaxResponse.status === 200 ) && ( ajaxResponse.readyState === 4 ) && ( ajaxResponse.statusText === "OK" ) ) {
    		let processed = JSON.parse( ajaxResponse.response );
    		if ( processed.data.result === 'OK' )
    			griwpcChangeButton ( true, processed.data.address );
    		else
    			console.log ( 'Error verifying reCAPTCHA: ', processed );
    	} else {
    		console.log ( 'Error AJAX Call: ', ajaxResponse );
    	}
    
    }

    When I’m using firefox ajaxResponse.statusText="OK" but when I’m using chrome it’s an empty string and it doesn’t enters into the if, but if you add this to the if && ( ajaxResponse.statusText === "" ) it works.
    I hope it helps somebody.

    • This reply was modified 5 years, 1 month ago by zsolt95.
Viewing 1 replies (of 1 total)