Make WordPress Core

Ticket #35042: 35042-2.diff

File 35042-2.diff, 1.0 KB (added by karmatosed, 6 years ago)

Second patch

  • wp-includes/post-template.php

     
    15251525        $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID );
    15261526        $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">
    15271527        <p>' . __( 'This content is password protected. To view it please enter your password below:' ) . '</p>
    1528         <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>
     1528        <p><label for="' . $label . '">' . __( 'Password:' ) . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__( 'View Post' ) . '" /></p></form>
    15291529        ';
    15301530
    15311531        /**