[wp-trac] [WordPress Trac] #6955: Procteted-Post won't show unless wp-admin/ is visited

WordPress Trac wp-trac at lists.automattic.com
Sun May 11 05:39:19 GMT 2008


#6955: Procteted-Post won't show unless wp-admin/ is visited
-----------------------+----------------------------------------------------
 Reporter:  hjrgenius  |       Owner:  anonymous     
     Type:  defect     |      Status:  new           
 Priority:  normal     |   Milestone:  2.7           
Component:  General    |     Version:  2.5.1         
 Severity:  normal     |    Keywords:  cookie protect
-----------------------+----------------------------------------------------
 I want to use password to protect one of my posts, and I set password to
 it. Then I logged off and saw the post is replaced by a password input
 textbox. But when I entered the password and submitted it, the post didn't
 show.
 I checked the cookies using firebug, and found out that a cookie named
 like wp-postpass_3e04c6dc7b7088d9486fe410bb44acb7(keeping the value of my
 password) was already stored in browser, while the post still didn't show
 up.
 Then I tried several ways and found out only when the cookie named
 wordpress_test_cookie is created shall the post show up... And that can be
 done by visiting wp-admin/ (But you don't have to login for real, that's
 the odd part.)
 I wonder if the check for wordpress_test_cookie is unnecessary? User
 enters password, user sees the post. I think that's the right way.
 Hope this can be fixed in the next revision, because hardly anyone one
 knows he/she should visit wp-admin/ to see the protected post, right?
 Thanks for your work :)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6955>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list