Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2013 07:39:27 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Escape output of translation strings where appropriate. Refresh some escaping approaches. See #1999.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/search/template-tags.php

    r4928 r4952  
    229229        // No search terms specified
    230230        if ( empty( $search_terms ) ) {
    231             $title = __( 'Search', 'bbpress' );
     231            $title = esc_html__( 'Search', 'bbpress' );
    232232
    233233        // Include search terms in title
    234234        } else {
    235             $title = sprintf( __( "Search Results for '%s'", 'bbpress' ), esc_attr( $search_terms ) );
     235            $title = sprintf( esc_html__( "Search Results for '%s'", 'bbpress' ), esc_attr( $search_terms ) );
    236236        }
    237237
     
    414414
    415415        // Filter and return
    416         return apply_filters( 'bbp_get_search_pagination_count', $retstr );
     416        return apply_filters( 'bbp_get_search_pagination_count', esc_html( $retstr ) );
    417417    }
    418418
Note: See TracChangeset for help on using the changeset viewer.