Support » Fixing WordPress » password protected page redirects to admin login

  • Resolved VFHwebdev



    I’m having an issue where password protected pages are redirecting to the admin area after the password is entered.

    It’s not a plugin issue (disabled all plugins and it still happens).

    But it does seem to be a theme issue. When I switch to a theme like twenty-ten the problem goes away.

    I need some help with where to go from here.

    When this custom theme is applied to my primary site (site ID 1) password protected pages work properly. But when applied to other sites in my multi-site installation they don’t.

    Any ideas where to start tracking this down? Any suggestions of tools that might help me locate the error?



Viewing 1 replies (of 1 total)
  • Doh! Answered my own question.

    My theme had a custom password form created via a filter in functions.php

    That form had a hard-coded action that was using the address of the primary site.

    I changed this to

    <form action="'. get_site_url() .'/wp-pass.php" method="post">

    And all is good.

Viewing 1 replies (of 1 total)
  • The topic ‘password protected page redirects to admin login’ is closed to new replies.