[wp-trac] [WordPress Trac] #18824: Password protected pages don't work if site address is different from wordpress address

WordPress Trac noreply at wordpress.org
Sat Aug 24 07:46:21 UTC 2013


#18824: Password protected pages don't work if site address is different from
wordpress address
--------------------------+------------------------------
 Reporter:  3singes       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.2.1
 Severity:  normal        |  Resolution:  wontfix
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by c3mdigital):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 `wp-pass.php` was gracefully laid to rest in [19925] r.i.p..  Now we post
 to `site_url( 'wp-login.php?action=postpass', 'login_post' )`

 Do your normal auth cookies work using different domains?  This is a very
 edge case and if this still doesn't work you can add a conditional
 site_url filter:


 {{{
     if ( $post->post_password != '' )
         add_filter( 'site_url', function() {
              return get_home_url();
         });
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/18824#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list