Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter annanewfoundry

    (@annanewfoundry)

    Nick, Thanks for the response and the link! The problem was indeed on my end, and I thought I’d post my findings here in case they’re of use to anyone else. I’d been redirecting subscribers away from admin pages like this:

    //prevent subscribers from visiting /wp-admin
    function redirect_admin(){
    if ( ! current_user_can( ‘edit_posts’ ) ){
    wp_redirect( home_url() );
    exit;
    }
    }
    add_action( ‘admin_init’, ‘redirect_admin’ );

    Not surprisingly, this causes problems when non-logged-on users visited my contact form. The call to the admin script fetching the captcha image was getting redirected.

    Thanks again for your help and for your work in the support forums!

    Anna

Viewing 1 replies (of 1 total)