Changeset 7006 for trunk/src/includes/topics/template.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/template.php
r6967 r7006 638 638 // Default to topic post type name label 639 639 } else { 640 $tto 641 $title 640 $tto = get_post_type_object( bbp_get_topic_post_type() ); 641 $title = $tto->labels->name; 642 642 } 643 643 } … … 1468 1468 1469 1469 // Filter sections 1470 $sections 1470 $sections = apply_filters( 'bbp_get_topic_author_links', $author_links, $r, $args ); 1471 1471 1472 1472 // Assemble sections into author link … … 2018 2018 // First link never has view=all 2019 2019 $retval = bbp_get_view_all( 'edit_others_replies' ) 2020 ? "<a href='" . esc_url( bbp_remove_view_all( $link ) ) . "'>" . esc_html( $replies ) . "</a>"2020 ? "<a href='" . esc_url( bbp_remove_view_all( $link ) ) . "'>" . esc_html( $replies ) . '</a>' 2021 2021 : $replies; 2022 2022 … … 2033 2033 // Hidden link 2034 2034 $retval .= ! bbp_get_view_all( 'edit_others_replies' ) 2035 ? " <a href='" . esc_url( bbp_add_view_all( $link, true ) ) . "'>" . esc_html( $extra ) . "</a>"2035 ? " <a href='" . esc_url( bbp_add_view_all( $link, true ) ) . "'>" . esc_html( $extra ) . '</a>' 2036 2036 : " {$extra}"; 2037 2037 } … … 2990 2990 // Several topics in a forum with several pages 2991 2991 } else { 2992 $retstr = sprintf( _n( 'Viewing topic %2$s (of %4$s total)', 'Viewing %1$s topics - %2$s through %3$s (of %4$s total)', $total_int, 'bbpress' ), $count_num, $from_num, $to_num, $total ); 2992 $retstr = sprintf( _n( 'Viewing topic %2$s (of %4$s total)', 'Viewing %1$s topics - %2$s through %3$s (of %4$s total)', $total_int, 'bbpress' ), $count_num, $from_num, $to_num, $total ); //phpcs:ignore 2993 2993 } 2994 2994 … … 3242 3242 ob_start(); ?> 3243 3243 3244 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" class="<?php echo esc_attr( $r['select_class'] ); ?>"<?php bbp_tab_index_attribute( $r['tab'] ); ?>>3244 <select name="<?php echo esc_attr( $r['select_id'] ); ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" class="<?php echo esc_attr( $r['select_class'] ); ?>"<?php bbp_tab_index_attribute( $r['tab'] ); ?>> 3245 3245 3246 3246 <?php foreach ( bbp_get_topic_statuses( $r['topic_id'] ) as $key => $label ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.