Ticket #27071: 27071.patch
File 27071.patch, 1.1 KB (added by , 11 years ago) |
---|
-
src/wp-includes/post-template.php
1248 1248 $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID ); 1249 1249 $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post"> 1250 1250 <p>' . __( 'This content is password protected. To view it please enter your password below:' ) . '</p> 1251 <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> 1252 </form> 1251 <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> 1253 1252 '; 1254 1253 return apply_filters( 'the_password_form', $output ); 1255 1254 }