WordPress.org

Make WordPress Core

Changeset 19812


Ignore:
Timestamp:
02/01/12 22:33:43 (4 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.