Ticket #2207: comment-pswd.patch
| File comment-pswd.patch, 1.4 KB (added by SteveAgl, 6 years ago) |
|---|
-
trunk/wp-includes/comment-functions.php
290 290 } else { 291 291 if (!empty($post->post_password)) { // if there's a password 292 292 if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie 293 echo( 'Enter your password to view comments');293 echo(__('Enter your password to view comments')); 294 294 return; 295 295 } 296 296 } -
trunk/wp-includes/template-functions-post.php
3 3 function get_the_password_form() { 4 4 $output = '<form action="' . get_settings('siteurl') . '/wp-pass.php" method="post"> 5 5 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 6 <p><label>' . __("Password:") . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name=" Submit" value="Submit" /></p>6 <p><label>' . __("Password:") . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name="' . __("Submit") . '" value="Submit" /></p> 7 7 </form> 8 8 '; 9 9 return $output;
