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
This commit is contained in:
parent
cbafaaea36
commit
1098f33984
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue