WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] password protected page redirects to admin login

[Resolved] password protected page redirects to admin login

  • VFHwebdev
    Participant

    @vfhwebdev

    Hi,

    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?

    Thanks,

    -Topper

Viewing 1 replies (of 1 total)
  • VFHwebdev
    Participant

    @vfhwebdev

    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 ‘[Resolved] password protected page redirects to admin login’ is closed to new replies.