From 5891d79a14ad0a703f0a456ed58220f96150b93b Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 7 Aug 2013 13:43:17 +0000 Subject: [PATCH] Restore the for/id attributes in the post password for as they are necessary for accessibility tools. Fixes #18729. git-svn-id: https://develop.svn.wordpress.org/trunk@25011 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 1fc316eb6c..facb36edd8 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -1232,9 +1232,10 @@ 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:' ) . '

-

+

'; return apply_filters( 'the_password_form', $output );