From 1098f339849b3fce245ef5637e75ab34631544bc Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 1 Feb 2012 22:33:43 +0000 Subject: [PATCH] Don't create a variable we only use once. props niallkennedy, fixes #19941. git-svn-id: http://svn.automattic.com/wordpress/trunk@19812 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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