From 36dffb5d2d93527a718330728d7ecf8586412ec1 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@6698 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;