Changeset 4952
- Timestamp:
- 05/27/2013 07:39:27 AM (13 years ago)
- Location:
- trunk/includes
- Files:
-
- 6 edited
-
common/template-tags.php (modified) (3 diffs)
-
forums/template-tags.php (modified) (13 diffs)
-
replies/template-tags.php (modified) (13 diffs)
-
search/template-tags.php (modified) (2 diffs)
-
topics/functions.php (modified) (1 diff)
-
topics/template-tags.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/template-tags.php
r4944 r4952 2190 2190 // If capable, include a link to edit the tag 2191 2191 if ( current_user_can( 'manage_topic_tags' ) ) { 2192 $tag_data[] = '<a href="' . bbp_get_topic_tag_edit_link() . '" class="bbp-edit-topic-tag-link">' . __( '(Edit)', 'bbpress' ) . '</a>';2192 $tag_data[] = '<a href="' . bbp_get_topic_tag_edit_link() . '" class="bbp-edit-topic-tag-link">' . esc_attr__( '(Edit)', 'bbpress' ) . '</a>'; 2193 2193 } 2194 2194 … … 2312 2312 // Search 2313 2313 } elseif ( bbp_is_search() && bbp_get_search_terms() ) { 2314 $crumbs[] = '<a href="' . bbp_get_search_url() . '" class="bbp-breadcrumb-search">' . __( 'Search', 'bbpress' ) . '</a>';2314 $crumbs[] = '<a href="' . bbp_get_search_url() . '" class="bbp-breadcrumb-search">' . esc_attr__( 'Search', 'bbpress' ) . '</a>'; 2315 2315 } 2316 2316 … … 2483 2483 */ 2484 2484 function bbp_get_logout_link( $redirect_to = '' ) { 2485 return apply_filters( 'bbp_get_logout_link', '<a href="' . wp_logout_url( $redirect_to ) . '" class="button logout-link">' . __( 'Log Out', 'bbpress' ) . '</a>', $redirect_to );2485 return apply_filters( 'bbp_get_logout_link', '<a href="' . wp_logout_url( $redirect_to ) . '" class="button logout-link">' . esc_html__( 'Log Out', 'bbpress' ) . '</a>', $redirect_to ); 2486 2486 } 2487 2487 -
trunk/includes/forums/template-tags.php
r4924 r4952 527 527 528 528 if ( !empty( $time_since ) && !empty( $link_url ) ) 529 $anchor = '<a href="' . $link_url . '" title="' . esc_attr( $title ) . '">' . $time_since. '</a>';529 $anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>'; 530 530 else 531 $anchor = __( 'No Topics', 'bbpress' );531 $anchor = esc_html__( 'No Topics', 'bbpress' ); 532 532 533 533 return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id ); … … 725 725 726 726 // Build this sub forums link 727 $output .= $r['link_before'] . '<a href="' . $permalink. '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'];727 $output .= $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after']; 728 728 } 729 729 … … 1124 1124 // First link never has view=all 1125 1125 if ( bbp_get_view_all( 'edit_others_topics' ) ) 1126 $retval .= "<a href='" . esc_url( bbp_remove_view_all( bbp_get_forum_permalink( $forum_id ) ) ) . "'> $topics</a>";1126 $retval .= "<a href='" . esc_url( bbp_remove_view_all( bbp_get_forum_permalink( $forum_id ) ) ) . "'>" . esc_html( $topics ) . "</a>"; 1127 1127 else 1128 $retval .= $topics;1128 $retval .= esc_html( $topics ); 1129 1129 1130 1130 // Get deleted topics … … 1143 1143 // Link 1144 1144 } else { 1145 $retval .= " <a href='" . esc_url( bbp_add_view_all( bbp_get_forum_permalink( $forum_id ), true ) ) . "'> $extra</a>";1145 $retval .= " <a href='" . esc_url( bbp_add_view_all( bbp_get_forum_permalink( $forum_id ), true ) ) . "'>" . esc_html( $extra ) . "</a>"; 1146 1146 } 1147 1147 } … … 1866 1866 1867 1867 if ( bbp_is_forum_category( $forum_id ) ) { 1868 $retstr = sprintf( __( 'This category contains %1$s and %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $topic_text, $reply_text, $last_updated_by, $time_since );1868 $retstr = sprintf( esc_html__( 'This category contains %1$s and %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $topic_text, $reply_text, $last_updated_by, $time_since ); 1869 1869 } else { 1870 $retstr = sprintf( __( 'This forum contains %1$s and %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $topic_text, $reply_text, $last_updated_by, $time_since );1870 $retstr = sprintf( esc_html__( 'This forum contains %1$s and %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $topic_text, $reply_text, $last_updated_by, $time_since ); 1871 1871 } 1872 1872 … … 1874 1874 1875 1875 if ( bbp_is_forum_category( $forum_id ) ) { 1876 $retstr = sprintf( __( 'This category contains %1$s, and was last updated by %2$s %3$s.', 'bbpress' ), $topic_text, $last_updated_by, $time_since );1876 $retstr = sprintf( esc_html__( 'This category contains %1$s, and was last updated by %2$s %3$s.', 'bbpress' ), $topic_text, $last_updated_by, $time_since ); 1877 1877 } else { 1878 $retstr = sprintf( __( 'This forum contains %1$s, and was last updated by %2$s %3$s.', 'bbpress' ), $topic_text, $last_updated_by, $time_since );1878 $retstr = sprintf( esc_html__( 'This forum contains %1$s, and was last updated by %2$s %3$s.', 'bbpress' ), $topic_text, $last_updated_by, $time_since ); 1879 1879 } 1880 1880 } … … 1886 1886 1887 1887 if ( bbp_is_forum_category( $forum_id ) ) { 1888 $retstr = sprintf( __( 'This category contains %1$s and %2$s.', 'bbpress' ), $topic_text, $reply_text );1888 $retstr = sprintf( esc_html__( 'This category contains %1$s and %2$s.', 'bbpress' ), $topic_text, $reply_text ); 1889 1889 } else { 1890 $retstr = sprintf( __( 'This forum contains %1$s and %2$s.', 'bbpress' ), $topic_text, $reply_text );1890 $retstr = sprintf( esc_html__( 'This forum contains %1$s and %2$s.', 'bbpress' ), $topic_text, $reply_text ); 1891 1891 } 1892 1892 … … 1896 1896 1897 1897 if ( bbp_is_forum_category( $forum_id ) ) { 1898 $retstr = sprintf( __( 'This category contains %1$s.', 'bbpress' ), $topic_text );1898 $retstr = sprintf( esc_html__( 'This category contains %1$s.', 'bbpress' ), $topic_text ); 1899 1899 } else { 1900 $retstr = sprintf( __( 'This forum contains %1$s.', 'bbpress' ), $topic_text );1900 $retstr = sprintf( esc_html__( 'This forum contains %1$s.', 'bbpress' ), $topic_text ); 1901 1901 } 1902 1902 1903 1903 } else { 1904 $retstr = __( 'This forum is empty.', 'bbpress' );1904 $retstr = esc_html__( 'This forum is empty.', 'bbpress' ); 1905 1905 } 1906 1906 } … … 2143 2143 2144 2144 foreach( $forum_attr as $value => $label ) 2145 $type_output .= "\t" . '<option value="' . $value. '"' . selected( bbp_get_forum_type( $forum_id ), $value, false ) . '>' . esc_html( $label ) . '</option>' . "\n";2145 $type_output .= "\t" . '<option value="' . esc_attr( $value ) . '"' . selected( bbp_get_forum_type( $forum_id ), $value, false ) . '>' . esc_html( $label ) . '</option>' . "\n"; 2146 2146 2147 2147 $type_output .= '</select>'; … … 2181 2181 2182 2182 foreach( $forum_attr as $value => $label ) 2183 $status_output .= "\t" . '<option value="' . $value. '"' . selected( bbp_get_forum_status( $forum_id ), $value, false ) . '>' . esc_html( $label ) . '</option>' . "\n";2183 $status_output .= "\t" . '<option value="' . esc_attr( $value ) . '"' . selected( bbp_get_forum_status( $forum_id ), $value, false ) . '>' . esc_html( $label ) . '</option>' . "\n"; 2184 2184 2185 2185 $status_output .= '</select>'; … … 2220 2220 2221 2221 foreach( $forum_attr as $value => $label ) 2222 $visibility_output .= "\t" . '<option value="' . $value. '"' . selected( bbp_get_forum_visibility( $forum_id ), $value, false ) . '>' . esc_html( $label ) . '</option>' . "\n";2222 $visibility_output .= "\t" . '<option value="' . esc_attr( $value ) . '"' . selected( bbp_get_forum_visibility( $forum_id ), $value, false ) . '>' . esc_html( $label ) . '</option>' . "\n"; 2223 2223 2224 2224 $visibility_output .= '</select>'; … … 2285 2285 } 2286 2286 2287 $link = '<a href="' . $url . '" class="bbp-forum-rss-link topics"><span>' .__( 'Topics', 'bbpress' ) . '</span></a>';2287 $link = '<a href="' . esc_url( $url ) . '" class="bbp-forum-rss-link topics"><span>' . esc_attr__( 'Topics', 'bbpress' ) . '</span></a>'; 2288 2288 } 2289 2289 … … 2349 2349 } 2350 2350 2351 $link = '<a href="' . $url . '" class="bbp-forum-rss-link replies"><span>' .__( 'Replies', 'bbpress' ) . '</span></a>';2351 $link = '<a href="' . esc_url( $url ) . '" class="bbp-forum-rss-link replies"><span>' . esc_html__( 'Replies', 'bbpress' ) . '</span></a>'; 2352 2352 } 2353 2353 -
trunk/includes/replies/template-tags.php
r4944 r4952 701 701 return false; 702 702 703 $r = "\n\n" . '<ul id="bbp-reply-revision-log-' . $reply_id. '" class="bbp-reply-revision-log">' . "\n\n";703 $r = "\n\n" . '<ul id="bbp-reply-revision-log-' . esc_attr( $reply_id ) . '" class="bbp-reply-revision-log">' . "\n\n"; 704 704 705 705 // Loop through revisions … … 717 717 $since = bbp_get_time_since( bbp_convert_date( $revision->post_modified ) ); 718 718 719 $r .= "\t" . '<li id="bbp-reply-revision-log-' . $reply_id . '-item-' . $revision->ID. '" class="bbp-reply-revision-log-item">' . "\n";719 $r .= "\t" . '<li id="bbp-reply-revision-log-' . esc_attr( $reply_id ) . '-item-' . esc_attr( $revision->ID ) . '" class="bbp-reply-revision-log-item">' . "\n"; 720 720 if ( !empty( $reason ) ) { 721 $r .= "\t\t" . sprintf( __( 'This reply was modified %1$s by %2$s. Reason: %3$s', 'bbpress' ), $since, $author, $reason) . "\n";721 $r .= "\t\t" . sprintf( esc_html__( 'This reply was modified %1$s by %2$s. Reason: %3$s', 'bbpress' ), esc_html( $since ), $author, esc_html( $reason ) ) . "\n"; 722 722 } else { 723 $r .= "\t\t" . sprintf( __( 'This reply was modified %1$s by %2$s.', 'bbpress' ), $since, $author ) . "\n";723 $r .= "\t\t" . sprintf( esc_html__( 'This reply was modified %1$s by %2$s.', 'bbpress' ), esc_html( $since ), $author ) . "\n"; 724 724 } 725 725 $r .= "\t" . '</li>' . "\n"; … … 1128 1128 1129 1129 // Setup title and author_links array 1130 $link_title = !empty( $link_title ) ? ' title="' . $link_title. '"' : '';1130 $link_title = !empty( $link_title ) ? ' title="' . esc_attr( $link_title ) . '"' : ''; 1131 1131 $author_links = array(); 1132 1132 … … 1142 1142 1143 1143 // Link class 1144 $link_class = ' class="bbp-author-' . $r['type']. '"';1144 $link_class = ' class="bbp-author-' . esc_attr( $r['type'] ) . '"'; 1145 1145 1146 1146 // Add links if not anonymous … … 1150 1150 foreach ( $author_links as $link => $link_text ) { 1151 1151 $link_class = ' class="bbp-author-' . $link . '"'; 1152 $author_link[] = sprintf( '<a href="%1$s"%2$s%3$s>%4$s</a>', $author_url, $link_title, $link_class, $link_text );1152 $author_link[] = sprintf( '<a href="%1$s"%2$s%3$s>%4$s</a>', esc_url( $author_url ), $link_title, $link_class, $link_text ); 1153 1153 } 1154 1154 … … 1304 1304 $reply_id = bbp_get_reply_id( $r['reply_id'] ); 1305 1305 $role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) ); 1306 $author_role = sprintf( '%1$s<div class="%2$s">%3$s</div>%4$s', $r['before'], $r['class'], $role, $r['after'] );1306 $author_role = sprintf( '%1$s<div class="%2$s">%3$s</div>%4$s', $r['before'], esc_attr( $r['class'] ), esc_html( $role ), $r['after'] ); 1307 1307 1308 1308 return apply_filters( 'bbp_get_reply_author_role', $author_role, $r ); … … 1543 1543 $uri = remove_query_arg( array( 'bbp_reply_to' ) ); 1544 1544 $uri = add_query_arg( array( 'bbp_reply_to' => $reply->ID ) ); 1545 $uri = esc_url( wp_nonce_url( $uri, 'respond_id_' . $reply->ID ));1545 $uri = wp_nonce_url( $uri, 'respond_id_' . $reply->ID ); 1546 1546 $uri = $uri . '#new-post'; 1547 1547 $onclick = 'return addReply.moveForm("' . $r['add_below'] . '-' . $reply->ID . '","' . $reply->ID . '","' . $r['respond_id'] . '","' . $reply->post_parent . '")'; 1548 1548 $r['uri'] = $uri; 1549 $retval = $r['link_before'] . '<a href="' . $r['uri'] . '" class="bbp-reply-to-link" onclick=' . "'{$onclick}' >" . $r['reply_text']. '</a>' . $r['link_after'];1549 $retval = $r['link_before'] . '<a href="' . esc_url( $r['uri'] ) . '" class="bbp-reply-to-link" onclick=' . "'{$onclick}' >" . esc_html( $r['reply_text'] ) . '</a>' . $r['link_after']; 1550 1550 1551 1551 return apply_filters( 'bbp_get_reply_to_link', $retval, $r, $args ); … … 1588 1588 // Set visibility 1589 1589 $style = !empty( $reply_to ) ? '' : ' style="display:none;"'; 1590 $link = esc_url( remove_query_arg( array( 'bbp_reply_to', '_wpnonce' )) ) . '#post-' . $reply_to;1591 $retval = '<a rel="nofollow" id="bbp-cancel-reply-to-link" href="' . $link . '"' . $style . '>' . $text. '</a>';1590 $link = remove_query_arg( array( 'bbp_reply_to', '_wpnonce' ) ) . '#post-' . $reply_to; 1591 $retval = '<a rel="nofollow" id="bbp-cancel-reply-to-link" href="' . esc_url( $link ) . '"' . $style . '>' . esc_html( $text ) . '</a>'; 1592 1592 1593 1593 return apply_filters( 'bbp_get_cancel_reply_to_link', $retval, $link, $text ); … … 1822 1822 return; 1823 1823 1824 $retval = $r['link_before'] . '<a href="' . $uri . '">' . $r['edit_text']. '</a>' . $r['link_after'];1824 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '">' . esc_html( $r['edit_text'] ) . '</a>' . $r['link_after']; 1825 1825 1826 1826 return apply_filters( 'bbp_get_reply_edit_link', $retval, $r ); … … 2007 2007 $display = bbp_is_reply_spam( $reply->ID ) ? $r['unspam_text'] : $r['spam_text']; 2008 2008 $uri = add_query_arg( array( 'action' => 'bbp_toggle_reply_spam', 'reply_id' => $reply->ID ) ); 2009 $uri = esc_url( wp_nonce_url( $uri, 'spam-reply_' . $reply->ID ));2010 $retval = $r['link_before'] . '<a href="' . $uri . '">' . $display. '</a>' . $r['link_after'];2009 $uri = wp_nonce_url( $uri, 'spam-reply_' . $reply->ID ); 2010 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '">' . esc_html( $display ) . '</a>' . $r['link_after']; 2011 2011 2012 2012 return apply_filters( 'bbp_get_reply_spam_link', $retval, $r ); … … 2070 2070 return; 2071 2071 2072 $uri = esc_url(add_query_arg( array(2072 $uri = add_query_arg( array( 2073 2073 'action' => 'move', 2074 2074 'reply_id' => $reply_id 2075 ), bbp_get_reply_edit_url( $reply_id ) ) );2076 2077 $retval = $r['link_before'] . '<a href="' . $uri. '" title="' . esc_attr( $r['split_title'] ) . '">' . esc_html( $r['split_text'] ) . '</a>' . $r['link_after'];2075 ), bbp_get_reply_edit_url( $reply_id ) ); 2076 2077 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . esc_attr( $r['split_title'] ) . '">' . esc_html( $r['split_text'] ) . '</a>' . $r['link_after']; 2078 2078 2079 2079 return apply_filters( 'bbp_get_reply_move_link', $retval, $r ); … … 2137 2137 return; 2138 2138 2139 $uri = esc_url( 2140 add_query_arg( 2141 array( 2142 'action' => 'split', 2143 'reply_id' => $reply_id 2144 ), 2145 bbp_get_topic_edit_url( $topic_id ) 2146 ) ); 2147 2148 $retval = $r['link_before'] . '<a href="' . $uri . '" title="' . esc_attr( $r['split_title'] ) . '">' . esc_html( $r['split_text'] ) . '</a>' . $r['link_after']; 2139 $uri = add_query_arg( array( 2140 'action' => 'split', 2141 'reply_id' => $reply_id 2142 ), bbp_get_topic_edit_url( $topic_id ) ); 2143 2144 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . esc_attr( $r['split_title'] ) . '">' . esc_html( $r['split_text'] ) . '</a>' . $r['link_after']; 2149 2145 2150 2146 return apply_filters( 'bbp_get_topic_split_link', $retval, $r ); … … 2265 2261 2266 2262 // Filter and return 2267 return apply_filters( 'bbp_get_topic_pagination_count', $retstr);2263 return apply_filters( 'bbp_get_topic_pagination_count', esc_html( $retstr ) ); 2268 2264 } 2269 2265 -
trunk/includes/search/template-tags.php
r4928 r4952 229 229 // No search terms specified 230 230 if ( empty( $search_terms ) ) { 231 $title = __( 'Search', 'bbpress' );231 $title = esc_html__( 'Search', 'bbpress' ); 232 232 233 233 // Include search terms in title 234 234 } 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 ) ); 236 236 } 237 237 … … 414 414 415 415 // 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 ) ); 417 417 } 418 418 -
trunk/includes/topics/functions.php
r4944 r4952 3387 3387 <description> 3388 3388 <![CDATA[ 3389 <p><?php printf( __( 'Replies: %s', 'bbpress' ), bbp_get_topic_reply_count() ); ?></p>3389 <p><?php printf( esc_html__( 'Replies: %s', 'bbpress' ), bbp_get_topic_reply_count() ); ?></p> 3390 3390 <?php bbp_topic_content(); ?> 3391 3391 ]]> -
trunk/includes/topics/template-tags.php
r4944 r4952 909 909 return false; 910 910 911 $r = "\n\n" . '<ul id="bbp-topic-revision-log-' . $topic_id. '" class="bbp-topic-revision-log">' . "\n\n";911 $r = "\n\n" . '<ul id="bbp-topic-revision-log-' . esc_attr( $topic_id ) . '" class="bbp-topic-revision-log">' . "\n\n"; 912 912 913 913 // Loop through revisions … … 925 925 $since = bbp_get_time_since( bbp_convert_date( $revision->post_modified ) ); 926 926 927 $r .= "\t" . '<li id="bbp-topic-revision-log-' . $topic_id . '-item-' . $revision->ID. '" class="bbp-topic-revision-log-item">' . "\n";927 $r .= "\t" . '<li id="bbp-topic-revision-log-' . esc_attr( $topic_id ) . '-item-' . esc_attr( $revision->ID ) . '" class="bbp-topic-revision-log-item">' . "\n"; 928 928 if ( !empty( $reason ) ) { 929 $r .= "\t\t" . sprintf( __( 'This topic was modified %1$s by %2$s. Reason: %3$s', 'bbpress' ), $since, $author, $reason) . "\n";929 $r .= "\t\t" . sprintf( __( 'This topic was modified %1$s by %2$s. Reason: %3$s', 'bbpress' ), esc_html( $since ), $author, esc_html( $reason ) ) . "\n"; 930 930 } else { 931 $r .= "\t\t" . sprintf( __( 'This topic was modified %1$s by %2$s.', 'bbpress' ), $since, $author ) . "\n";931 $r .= "\t\t" . sprintf( __( 'This topic was modified %1$s by %2$s.', 'bbpress' ), esc_html( $since ), $author ) . "\n"; 932 932 } 933 933 $r .= "\t" . '</li>' . "\n"; … … 1419 1419 1420 1420 // Setup title and author_links array 1421 $link_title = !empty( $link_title ) ? ' title="' . $link_title. '"' : '';1421 $link_title = !empty( $link_title ) ? ' title="' . esc_attr( $link_title ) . '"' : ''; 1422 1422 $author_links = array(); 1423 1423 … … 1433 1433 1434 1434 // Link class 1435 $link_class = ' class="bbp-author-' . $r['type']. '"';1435 $link_class = ' class="bbp-author-' . esc_attr( $r['type'] ) . '"'; 1436 1436 1437 1437 // Add links if not anonymous … … 1440 1440 // Assemble the links 1441 1441 foreach ( $author_links as $link => $link_text ) { 1442 $link_class = ' class="bbp-author-' . $link. '"';1443 $author_link[] = sprintf( '<a href="%1$s"%2$s%3$s>%4$s</a>', $author_url, $link_title, $link_class, $link_text );1442 $link_class = ' class="bbp-author-' . esc_attr( $link ) . '"'; 1443 $author_link[] = sprintf( '<a href="%1$s"%2$s%3$s>%4$s</a>', esc_url( $author_url ), $link_title, $link_class, $link_text ); 1444 1444 } 1445 1445 … … 2136 2136 // Parse arguments against default values 2137 2137 $r = bbp_parse_args( $args, array( 2138 'before' => '<div class="bbp-topic-tags"><p>' . __( 'Tagged:', 'bbpress' ) . ' ',2138 'before' => '<div class="bbp-topic-tags"><p>' . esc_html__( 'Tagged:', 'bbpress' ) . ' ', 2139 2139 'sep' => ', ', 2140 2140 'after' => '</p></div>' … … 2782 2782 2783 2783 // Filter and return 2784 return apply_filters( 'bbp_get_topic_pagination_count', $retstr);2784 return apply_filters( 'bbp_get_topic_pagination_count', esc_html( $retstr ) ); 2785 2785 } 2786 2786 … … 3008 3008 if ( !empty( $last_reply ) ) { 3009 3009 $last_updated_by = bbp_get_author_link( array( 'post_id' => $last_reply, 'size' => $r['size'] ) ); 3010 $retstr = sprintf( __( 'This topic contains %1$s, has %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $reply_count, $voice_count, $last_updated_by, $time_since );3010 $retstr = sprintf( esc_html__( 'This topic contains %1$s, has %2$s, and was last updated by %3$s %4$s.', 'bbpress' ), $reply_count, $voice_count, $last_updated_by, $time_since ); 3011 3011 3012 3012 // Topic has no replies 3013 3013 } elseif ( ! empty( $voice_count ) && ! empty( $reply_count ) ) { 3014 $retstr = sprintf( __( 'This topic contains %1$s and has %2$s.', 'bbpress' ), $voice_count, $reply_count );3014 $retstr = sprintf( esc_html__( 'This topic contains %1$s and has %2$s.', 'bbpress' ), $voice_count, $reply_count ); 3015 3015 3016 3016 // Topic has no replies and no voices 3017 3017 } elseif ( empty( $voice_count ) && empty( $reply_count ) ) { 3018 $retstr = sprintf( __( 'This topic has no replies.', 'bbpress' ), $voice_count, $reply_count );3018 $retstr = sprintf( esc_html__( 'This topic has no replies.', 'bbpress' ), $voice_count, $reply_count ); 3019 3019 } 3020 3020
Note: See TracChangeset
for help on using the changeset viewer.