Skip to content

Commit a49eaba

Browse files
committed
Check bbPress exists
Fixes #189
1 parent a5f7ee7 commit a49eaba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/handlers/class-bbpress.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ private function get_user_data( $user_id, $reply_id ) {
490490
* @return array
491491
*/
492492
public function get_topic_users( $topic_id = 0 ) {
493+
if ( ! function_exists( 'get_topic_users' ) ) {
494+
return [];
495+
}
496+
493497
$topic_id = bbp_get_topic_id( $topic_id );
494498
if ( empty( $topic_id ) ) {
495499
return [];

0 commit comments

Comments
 (0)