Ticket #16482: 16482.2.diff
File 16482.2.diff, 895 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/post-template.php
1574 1574 $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID ); 1575 1575 $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post"> 1576 1576 <p>' . __( 'This content is password protected. To view it please enter your password below:' ) . '</p> 1577 <input type="hidden" name="_wp_http_referer" value="' . esc_url( get_permalink( $post ) ) . '" /> 1577 1578 <p><label for="' . $label . '">' . __( 'Password:' ) . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__( 'Submit' ) . '" /></p></form> 1578 1579 '; 1579 1580