WordPress.org

Make WordPress Core

Changeset 27874


Ignore:
Timestamp:
03/31/2014 08:48:37 PM (8 years ago)
Author:
nacin
Message:

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

Merges [27134] to the 3.8 branch.

props andykeith.
fixes #27071.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

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

    r25868 r27874  
    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.