From 09ddd48b07a06503d9c346263cac17219823f121 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 7 Aug 2013 13:43:50 +0000 Subject: [PATCH] Make is much easier for a theme to style the Post Password form. Fixes #18729 props philiparthurmoore for the original patches. Built from https://develop.svn.wordpress.org/trunk@25010 git-svn-id: http://core.svn.wordpress.org/trunk@25004 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 06d259e157..1fc316eb6c 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1232,13 +1232,12 @@ function prepend_attachment($content) { */ function get_the_password_form( $post = 0 ) { $post = get_post( $post ); - $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID ); - $output = '
-

' . __("This post is password protected. To view it please enter your password below:") . '

-

-
+ $output = '
+

' . __( 'This post is password protected. To view it please enter your password below:' ) . '

+

+
'; - return apply_filters('the_password_form', $output); + return apply_filters( 'the_password_form', $output ); } /**