Ticket #3374: 3374.patch
| File 3374.patch, 761 bytes (added by , 6 years ago) |
|---|
-
src/includes/admin/forums.php
635 635 } 636 636 } 637 637 638 // simple hack to show the forum description under the title639 bbp_forum_content( $forum->ID );638 // Only show content if user can read it and there is no password 639 if ( current_user_can( 'read_forum', $forum->ID ) && ! post_password_required( $forum ) ) { 640 640 641 // Get the forum description 642 $content = bbp_get_forum_content( $forum->ID ); 643 644 // Only proceed if there is a description 645 if ( ! empty( $content ) ) { 646 echo '<div class="bbp-escaped-content">' . esc_html( wp_trim_excerpt( $content, $forum ) ) . '</div>'; 647 } 648 } 649 641 650 // Sort & return 642 651 return $this->sort_row_actions( $actions ); 643 652 }