Make WordPress Core


Ignore:
Timestamp:
02/01/2012 10:33:43 PM (15 years ago)
Author:
nacin
Message:

Don't create a variable we only use once. props niallkennedy, fixes #19941.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r19728 r19812  
    188188
    189189        // If post password required and it doesn't match the cookie.
    190         if ( post_password_required($post) ) {
    191                 $output = get_the_password_form();
    192                 return $output;
    193         }
     190        if ( post_password_required($post) )
     191                return get_the_password_form();
    194192
    195193        if ( $page > count($pages) ) // if the requested page doesn't exist
Note: See TracChangeset for help on using the changeset viewer.