Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/24/2018 01:01:49 AM (8 years ago)
Author:
johnjamesjacoby
Message:

General: user escaped GetText variant where no HTML is ever allowed in strings.

This change brings a few dozen strings up to par with the others, and ensures that strings are escaped on their way into the runtime environment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/theme-compat.php

    r6583 r6777  
    692692        bbp_theme_compat_reset_post( array(
    693693            'ID'             => 0,
    694             'post_title'     => __( 'Replies', 'bbpress' ),
     694            'post_title'     => esc_html__( 'Replies', 'bbpress' ),
    695695            'post_author'    => 0,
    696696            'post_date'      => 0,
     
    792792            'post_content'   => $new_content,
    793793            'post_type'      => '',
    794             'post_title'     => sprintf( __( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ),
     794            'post_title'     => sprintf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ),
    795795            'post_status'    => bbp_get_public_status_id(),
    796796            'is_tax'         => true,
Note: See TracChangeset for help on using the changeset viewer.