diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a29d62cedb..67b6c50837 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -187,10 +187,8 @@ function get_the_content($more_link_text = null, $stripteaser = false) { $hasTeaser = false; // If post password required and it doesn't match the cookie. - if ( post_password_required($post) ) { - $output = get_the_password_form(); - return $output; - } + if ( post_password_required($post) ) + return get_the_password_form(); if ( $page > count($pages) ) // if the requested page doesn't exist $page = count($pages); // give them the highest numbered page that DOES exist