Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Aug 6, 2024
1 parent 65ca328 commit d534254
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/php/WPDiscuz/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public function __construct() {
* @noinspection PhpUndefinedFunctionInspection
*/
protected function init_hooks(): void {
if ( ! function_exists( 'wpDiscuz' ) ) {
return;
}

$wpd_recaptcha = wpDiscuz()->options->recaptcha;
$wpd_recaptcha = array_merge(
$wpd_recaptcha,
Expand Down

0 comments on commit d534254

Please sign in to comment.