Ticket #2055: 2055.diff
| File 2055.diff, 1.2 KB (added by , 20 years ago) |
|---|
-
wp-includes/pluggable-functions.php
287 287 setcookie(PASS_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 288 288 setcookie(USER_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 289 289 setcookie(PASS_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 290 setcookie('wp-postpass_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH); 290 291 } 291 292 endif; 292 293 -
wp-includes/template-functions-post.php
70 70 $output = get_the_password_form(); 71 71 return $output; 72 72 } 73 if ( stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) == $post->post_password ) { // and it does match the cookie 74 $site = get_settings('siteurl'); 75 $output = '<br /><a href="' . $site .'/wp-login.php?action=logout">Delete post password cookie!</a><br /><br />'; 76 } 73 77 } 74 78 75 79 if ( $more_file != '' )