Skip to content

Commit 1bbabfa

Browse files
committed
Add namespace to get_option call in Mailer class
Prefixed get_option with a backslash to ensure the global function is used, improving reliability in namespaced contexts.
1 parent 5a16c75 commit 1bbabfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-mailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public static function maybe_prevent_comment_notification( $maybe_notify, $comme
466466
}
467467

468468
// Only prevent if the create_posts option is enabled.
469-
if ( '1' !== get_option( 'activitypub_create_posts', false ) ) {
469+
if ( '1' !== \get_option( 'activitypub_create_posts', false ) ) {
470470
return $maybe_notify;
471471
}
472472

0 commit comments

Comments
 (0)