[wp-trac] [WordPress Trac] #16482: Visibility: password-protected breaks with redirected domains

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 25 13:36:35 UTC 2011


#16482: Visibility: password-protected breaks with redirected domains
--------------------------+------------------------------
 Reporter:  monkeyhouse   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.0.4
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by dd32):

 This is caused by wp-post.php using `wp_safe_redirect(wp_get_referer());`
 for the redirection.

 Since the referer is set to http://127... instead of http://localhost..
 and i'm logged in, it'll redirect me to the WordPress admin.

 Ideally, the best way to do this would be to POST the post_id along to wp-
 pass.php as well, and redirect to `get_permalink($post_id);`

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


More information about the wp-trac mailing list