Make WordPress Core

Ticket #27071: 27071.patch

File 27071.patch, 1.1 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/post-template.php

     
    12481248        $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID );
    12491249        $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">
    12501250        <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>
    12531252        ';
    12541253        return apply_filters( 'the_password_form', $output );
    12551254}