WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] password protected page redirects to admin login (2 posts)

  1. VFHwebdev
    Member
    Posted 2 years ago #

    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

  2. VFHwebdev
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic