From 7e969d706e297ba45b66783a069c7a4c34ef537b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 8 Feb 2014 13:23:13 +0000 Subject: [PATCH] Fix validation issue in get_the_password_form() caused by wpautop(). props andykeith. fixes #27071. Built from https://develop.svn.wordpress.org/trunk@27134 git-svn-id: http://core.svn.wordpress.org/trunk@27001 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 522ad3e18f..caa0700f49 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1248,8 +1248,7 @@ function get_the_password_form( $post = 0 ) { $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID ); $output = '

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

-

-
+

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