From 8945a17651d80c04deb2c34fc0013a1d79d1c61a Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 31 Jan 2008 21:47:35 +0000 Subject: [PATCH] Add unique 'for' attribute to labels for post password forms. Props Nazgul. fixes #4721 git-svn-id: http://svn.automattic.com/wordpress/trunk@6698 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a3c1c75030..0395a079b0 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -482,9 +482,11 @@ function prepend_attachment($content) { // function get_the_password_form() { + global $post; + $label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID); $output = '

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

-

+

'; return $output;