Ticket #23603: password_protected.patch
File password_protected.patch, 1.8 KB (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
1221 1221 */ 1222 1222 function get_the_password_form() { 1223 1223 $post = get_post(); 1224 $ptype_obj = get_post_type_object( $post->post_type ); 1225 1224 1226 $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID ); 1225 1227 $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post"> 1226 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p>1228 <p>' . esc_html( $ptype_obj->labels->password_protected ) . '</p> 1227 1229 <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> 1228 1230 </form> 1229 1231 '; -
wp-includes/post.php
1439 1439 'not_found' => array( __('No posts found.'), __('No pages found.') ), 1440 1440 'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ), 1441 1441 'parent_item_colon' => array( null, __('Parent Page:') ), 1442 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ) 1442 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ), 1443 'password_protected' => array( 1444 __( 'This post is password protected. To view it please enter your password below:' ), 1445 __( 'This page is password protected. To view it please enter your password below:' ) 1446 ) 1447 1443 1448 ); 1444 1449 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 1445 1450