Ticket #2207: comment-pswd.patch

File comment-pswd.patch, 1.4 KB (added by SteveAgl, 6 years ago)
  • trunk/wp-includes/comment-functions.php

     
    290290        } else { 
    291291                if (!empty($post->post_password)) { // if there's a password 
    292292                        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')); 
    294294                                return; 
    295295                        } 
    296296                } 
  • trunk/wp-includes/template-functions-post.php

     
    33function get_the_password_form() { 
    44        $output = '<form action="' . get_settings('siteurl') . '/wp-pass.php" method="post"> 
    55        <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> 
    77        </form> 
    88        '; 
    99        return $output;