WordPress coding style

This commit is contained in:
Matthias Pfefferle 2020-05-19 16:45:50 +02:00 committed by GitHub
parent 3c730050b7
commit be50451636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 );