Ticket #4721: 4721b.diff
File 4721b.diff, 953 bytes (added by , 16 years ago) |
---|
-
wp-includes/post-template.php
482 482 // 483 483 484 484 function get_the_password_form() { 485 global $post; 486 $label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID); 485 487 $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post"> 486 488 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 487 <p><label >' . __("Password:") . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . __("Submit") . '" /></p>489 <p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . __("Submit") . '" /></p> 488 490 </form> 489 491 '; 490 492 return $output;