Make WordPress Core

Ticket #16482: 16482.diff

File 16482.diff, 896 bytes (added by MikeHansenMe, 10 years ago)

Refreshed

  • src/wp-includes/post-template.php

     
    15741574        $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID );
    15751575        $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">
    15761576        <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_attr( get_permalink( $post ) ) . '" />
    15771578        <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>
    15781579        ';
    15791580