Opened 14 years ago
Closed 14 years ago
#2304 closed defect (bug) (no action required)
2 errors in bp-templatetags.php
Reported by: | chouf1 | Owned by: | |
---|---|---|---|
Milestone: | 1.2.4 | Priority: | major |
Severity: | Version: | ||
Component: | Core | Keywords: | has-patch |
Cc: |
Description
Two errors line 672 and 674
672: %s to be escaped
change
$pag_filter = sprintf( ( ' matching tag "%s"', 'buddypress' ), $forum_template->search_terms );
to
$pag_filter = sprintf( ( ' matching tag \"%s\"', 'buddypress' ), $forum_template->search_terms );
674: trailing %s
echo apply_filters( 'bp_forum_pagination_count', sprintf( ( 'Viewing topic %s to %s (%s total topics%s)', 'buddypress' ), $from_num, $to_num, $total, $pag_filter ) );
to:
echo apply_filters( 'bp_forum_pagination_count', sprintf( ( 'Viewing topic %s to %s (%s total topics)', 'buddypress' ), $from_num, $to_num, $total, $pag_filter ) );
Why does the first one need to be escaped, please?