Make WordPress Core

Ticket #19941: post-template.diff

File post-template.diff, 643 bytes (added by niallkennedy, 12 years ago)

return result of password form

  • wp-includes/post-template.php

     
    187187        $hasTeaser = false;
    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
    196194                $page = count($pages); // give them the highest numbered page that DOES exist