Changeset 6711 for trunk/wp-includes/post-template.php
- Timestamp:
- 02/02/2008 06:42:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r6698 r6711 87 87 88 88 if ( !empty($post->post_password) ) { // if there's a password 89 if ( stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password ) { // and it doesn't match the cookie89 if ( !isset($_COOKIE['wp-postpass_'.COOKIEHASH]) || stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password ) { // and it doesn't match the cookie 90 90 $output = get_the_password_form(); 91 91 return $output; … … 142 142 $output = $post->post_excerpt; 143 143 if ( !empty($post->post_password) ) { // if there's a password 144 if ( $_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password ) { // and it doesn't match the cookie144 if ( !isset($_COOKIE['wp-postpass_'.COOKIEHASH]) || $_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password ) { // and it doesn't match the cookie 145 145 $output = __('There is no excerpt because this is a protected post.'); 146 146 return $output;
Note: See TracChangeset
for help on using the changeset viewer.