Changeset 25010
- Timestamp:
- 08/07/2013 11:49:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r24974 r25010 1233 1233 function get_the_password_form( $post = 0 ) { 1234 1234 $post = get_post( $post ); 1235 $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID ); 1236 $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post"> 1237 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 1238 <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> 1239 </form> 1235 $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post"> 1236 <p>' . __( 'This post is password protected. To view it please enter your password below:' ) . '</p> 1237 <p><label>' . __( 'Password:' ) . ' <input name="post_password" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__( 'Submit' ) . '" /></p> 1238 </form> 1240 1239 '; 1241 return apply_filters( 'the_password_form', $output);1240 return apply_filters( 'the_password_form', $output ); 1242 1241 } 1243 1242
Note: See TracChangeset
for help on using the changeset viewer.