Making WordPress.org


Ignore:
Timestamp:
11/16/2018 09:24:02 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Central: Apply coding standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

    r7671 r7861  
    618618                            <?php echo get_avatar( $comment, 60 ); ?>
    619619                            <?php printf(
    620                                 __( '%s <span class="says">says:</span>', 'twentyten' ),
    621                                 sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() )
     620                                wp_kses_post( __( '%s <span class="says">says:</span>', 'twentyten' ) ),
     621                                sprintf( '<cite class="fn">%s</cite>', wp_kses_post( get_comment_author_link() ) )
    622622                            ); ?>
    623623                        </div>
     
    630630                        <?php endif; ?>
    631631
    632                         <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    633                             <?php
    634                                 /* translators: 1: date, 2: time */
    635                                 printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
    636                             ?>
     632                        <div class="comment-meta commentmetadata">
     633                            <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
     634                                <?php
     635                                    /* translators: 1: date, 2: time */
     636                                    printf(
     637                                        esc_html__( '%1$s at %2$s', 'twentyten' ),
     638                                        get_comment_date(),
     639                                        get_comment_time()
     640                                    );
     641                                ?>
     642                            </a>
     643
     644                            <?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?>
    637645                        </div>
    638646
     
    715723        }
    716724
    717         echo "$start_month $start_day";
     725        echo esc_html( "$start_month $start_day" );
    718726
    719727        if ( $end_day ) {
    720728            if ( $show_year && $start_year !== $end_year ) {
    721                 echo ", $start_year";
     729                echo esc_html( ", $start_year" );
    722730            }
    723731
     
    725733
    726734            if ( $start_month !== $end_month ) {
    727                 echo "$end_month ";
    728             }
    729 
    730             echo $end_day;
     735                echo esc_html( "$end_month " );
     736            }
     737
     738            echo esc_html( $end_day );
    731739
    732740            if ( $show_year ) {
    733                 echo ", $end_year";
     741                echo esc_html( ", $end_year" );
    734742            }
    735743        } elseif ( $show_year ) {
    736             echo ", $start_year";
     744            echo esc_html( ", $start_year" );
    737745        }
    738746    }
Note: See TracChangeset for help on using the changeset viewer.