WordPress.org

Make WordPress Core

Changeset 27134


Ignore:
Timestamp:
02/08/2014 01:22:40 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Fix validation issue in get_the_password_form() caused by wpautop().

props andykeith.
fixes #27071.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r25868 r27134  
    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 );
Note: See TracChangeset for help on using the changeset viewer.