Skip to content

Commit 8211207

Browse files
committed
Fix debug log
1 parent 8837b8b commit 8211207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Debug {
1111
* Initialize the class, registering WordPress hooks
1212
*/
1313
public static function init() {
14-
if ( WP_DEBUG_LOG ) {
14+
if ( WP_DEBUG && WP_DEBUG_LOG ) {
1515
\add_action( 'activitypub_safe_remote_post_response', array( '\Activitypub\Debug', 'log_remote_post_responses' ), 10, 4 );
1616
}
1717
}

0 commit comments

Comments
 (0)