Make WordPress Core

Changeset 21621


Ignore:
Timestamp:
08/25/2012 05:41:32 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Twelve: comments.php, cleanup and better indentation. Props obenland, see #21685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/comments.php

    r21404 r21621  
    1212 * @since Twenty Twelve 1.0
    1313 */
     14
     15/*
     16 * If the current post is protected by a password and
     17 * the visitor has not yet entered the password we will
     18 * return early without loading the comments.
     19 */
     20if ( post_password_required() )
     21    return;
    1422?>
    15 <?php
    16     /*
    17      * If the current post is protected by a password and
    18      * the visitor has not yet entered the password we will
    19      * return early without loading the comments.
    20      */
    21     if ( post_password_required() )
    22             return;
    23 ?>
     23
    2424<div id="comments" class="comments-area">
    2525
Note: See TracChangeset for help on using the changeset viewer.