From 05c839608a1f36860d9a68f2dc0137897ef66570 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@19812 602fd350-edb4-49c9-b593-d223f7449a82 --- 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