Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

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

    r39618 r42343  
    2828    <?php
    2929    // You can start editing here -- including this comment!
    30     if ( have_comments() ) : ?>
     30    if ( have_comments() ) :
     31    ?>
    3132        <h2 class="comments-title">
    3233            <?php
     
    5455        <ol class="comment-list">
    5556            <?php
    56                 wp_list_comments( array(
    57                     'avatar_size' => 100,
    58                     'style'       => 'ol',
    59                     'short_ping'  => true,
    60                     'reply_text'  => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
    61                 ) );
     57                wp_list_comments(
     58                    array(
     59                        'avatar_size' => 100,
     60                        'style'       => 'ol',
     61                        'short_ping'  => true,
     62                        'reply_text'  => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
     63                    )
     64                );
    6265            ?>
    6366        </ol>
    6467
    65         <?php the_comments_pagination( array(
    66             'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
    67             'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
    68         ) );
     68        <?php
     69        the_comments_pagination(
     70            array(
     71                'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
     72                'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
     73            )
     74        );
    6975
    7076    endif; // Check for have_comments().
    7177
    7278    // If comments are closed and there are comments, let's leave a little note, shall we?
    73     if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
     79    if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
     80    ?>
    7481
    7582        <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.