From 631561125bad26b124bc55a4b637f13f45deecda Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Thu, 11 Feb 2021 18:10:22 -0500 Subject: [PATCH] Default settings error fix --- classes/class-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-admin.php b/classes/class-admin.php index 15148bfab..947c47af5 100644 --- a/classes/class-admin.php +++ b/classes/class-admin.php @@ -143,7 +143,7 @@ public function __construct( $plugin ) { add_filter( 'role_has_cap', array( $this, 'filter_role_caps' ), 10, 3 ); if ( is_multisite() && $plugin->is_network_activated() && ! is_network_admin() ) { - $options = (array) get_site_option( 'wp_stream_network', $plugin->settings->get_defaults() ); + $options = (array) get_site_option( 'wp_stream_network', array() ); $option = isset( $options['general_site_access'] ) ? absint( $options['general_site_access'] ) : 1; $this->disable_access = ( $option ) ? false : true;