Ticket #16482: 16482._wp_http_referer.diff
File 16482._wp_http_referer.diff, 811 bytes (added by , 14 years ago) |
---|
-
wp-includes/post-template.php
1211 1211 $label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID); 1212 1212 $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post"> 1213 1213 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 1214 <input type="hidden" name="_wp_http_referer" value="' . esc_attr( get_permalink( $post ) ) . '" /> 1214 1215 <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> 1215 1216 </form> 1216 1217 ';