From be50451636b6adc4b6443c295c2123b1da739869 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Tue, 19 May 2020 16:45:50 +0200 Subject: [PATCH] WordPress coding style --- includes/rest/class-nodeinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/rest/class-nodeinfo.php b/includes/rest/class-nodeinfo.php index bc48f0d..9ddd6e3 100644 --- a/includes/rest/class-nodeinfo.php +++ b/includes/rest/class-nodeinfo.php @@ -13,7 +13,7 @@ class Nodeinfo { * Initialize the class, registering WordPress hooks */ public static function init() { - if ( 1 === get_option('blog_public') ) { + if ( 1 === get_option( 'blog_public', 1 ) ) { \add_action( 'rest_api_init', array( '\Activitypub\Rest\Nodeinfo', 'register_routes' ) ); \add_filter( 'nodeinfo_data', array( '\Activitypub\Rest\Nodeinfo', 'add_nodeinfo_discovery' ), 10, 2 ); \add_filter( 'nodeinfo2_data', array( '\Activitypub\Rest\Nodeinfo', 'add_nodeinfo2_discovery' ), 10 );