Changeset 10604 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply.php
- Timestamp:
- 01/20/2021 05:31:04 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-single-reply.php
r9848 r10604 7 7 * @subpackage Theme 8 8 */ 9 10 /* 11 * Stub this in for this template, as bbPress not too smart sometimes. 12 * On a "topic query" which is a reply query, it'll fail to return an ID. 13 */ 14 add_filter( 'bbp_get_reply_id', function( $reply_id, $passed_id ) { 15 if ( ! $reply_id && ! $passed_id && bbp_is_reply( get_the_ID() ) ) { 16 $reply_id = get_the_ID(); 17 } 18 19 return $reply_id; 20 }, 10, 2 ); 9 21 10 22 if ( bbp_is_single_view() || bbp_is_search_results() || bbp_is_single_user_replies() ) : ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)