Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/19/2015 04:27:37 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Templates: Escape all gettext output in default template parts. See #1999.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/loop-single-topic.php

    r5156 r5688  
    5858            <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    5959
    60             <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
     60            <span class="bbp-topic-started-by"><?php printf( esc_html__( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
    6161
    6262            <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
     
    6666                <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
    6767
    68                 <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>
     68                <span class="bbp-topic-started-in"><?php printf( esc_html__( 'in: %2$s', 'bbpress' ), '<a href="' . bbp_get_forum_permalink( bbp_get_topic_forum_id() ) . '">' . bbp_get_forum_title( bbp_get_topic_forum_id() ) . '</a>' ); ?></span>
    6969
    7070                <?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
Note: See TracChangeset for help on using the changeset viewer.