WordPress.org

Make WordPress Core

Changeset 36685


Ignore:
Timestamp:
02/24/2016 04:24:36 PM (6 years ago)
Author:
melchoyce
Message:

Forms: Swap "Submit" button label for "Enter" on password-protected pages.

Props karmatosed, SergeyBiryukov

See #35042.

File:
1 edited

Legend:

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

    r36329 r36685  
    15331533    $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">
    15341534    <p>' . __( 'This content is password protected. To view it please enter your password below:' ) . '</p>
    1535     <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>
     1535    <p><label for="' . $label . '">' . __( 'Password:' ) . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr_x( 'Enter', 'post password form' ) . '" /></p></form>
    15361536    ';
    15371537
Note: See TracChangeset for help on using the changeset viewer.