Make WordPress Core


Ignore:
Timestamp:
12/14/2018 03:24:35 AM (8 years ago)
Author:
pento
Message:

General: Fix some code formatting issues.

A handful of code formatting issues were introduced in recent commits, runs the auto-fixer on them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php

    r44149 r44155  
    3838                                                        $comment_author      = get_comment_author( $comment );
    3939                                                        $avatar              = get_avatar( $comment, $args['avatar_size'] );
    40                                                         if ( 0 != $args['avatar_size'] ) {
    41                                                                 if ( empty( $comment_author_url ) ) {
    42                                                                         echo $avatar;
    43                                                                 } else {
    44                                                                         printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url );
    45                                                                         echo $avatar;
    46                                                                 }
     40                                                if ( 0 != $args['avatar_size'] ) {
     41                                                        if ( empty( $comment_author_url ) ) {
     42                                                                echo $avatar;
     43                                                        } else {
     44                                                                printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url );
     45                                                                echo $avatar;
    4746                                                        }
     47                                                }
    4848
    4949                                                        /*
     
    5151                                                         * fill color to the inner check shape when in circle form.
    5252                                                         */
    53                                                         if ( twentynineteen_is_comment_by_post_author( $comment ) ) {
    54                                                                 /* translators: %s: SVG Icon */
    55                                                                 printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) );
    56                                                         }
     53                                                if ( twentynineteen_is_comment_by_post_author( $comment ) ) {
     54                                                        /* translators: %s: SVG Icon */
     55                                                        printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) );
     56                                                }
    5757
    5858                                                        printf(
     
    6262                                                        );
    6363
    64                                                         if ( ! empty( $comment_author_url ) ) {
    65                                                                 echo '</a>';
    66                                                         }
     64                                                if ( ! empty( $comment_author_url ) ) {
     65                                                        echo '</a>';
     66                                                }
    6767                                                ?>
    6868                                        </div><!-- .comment-author -->
Note: See TracChangeset for help on using the changeset viewer.