Support » Plugin: reCAPTCHA in WP comments form » Plugin doesn’t work with non-standard wordpress ajax url

  • themightyjmac

    (@themightyjmac)


    This is a great & useful plugin, but I’ve got to mark it down because it won’t function correctly if your wordpress admin url is different for any reason.

    At our shop we use the Bedrock wordpress distribution which changes the admin url to /wp/wp-admin, which this plugin fails to take into account.

    To fix the problem, make the following changes:
    recaptcha.php line 64:
    'ajax_url' => get_admin_url(null, 'admin-ajax.php'),

    recaptcha.js line 92:
    GriwpcAjax.post ( griwpco.ajax_url, { 'action' : 'griwpc_verify_recaptcha', 'resp' : griwpcr }, griwpcProcessAjaxResponse, true );

  • The topic ‘Plugin doesn’t work with non-standard wordpress ajax url’ is closed to new replies.