From 28ba430afa44d627acaff507aa46d4ebad779a2f Mon Sep 17 00:00:00 2001 From: Ho Man Chan Date: Thu, 15 Oct 2020 14:27:49 -0400 Subject: [PATCH] Fix site option to use string --- inc/admin/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/admin/namespace.php b/inc/admin/namespace.php index 1b8dadd..32fd366 100644 --- a/inc/admin/namespace.php +++ b/inc/admin/namespace.php @@ -55,7 +55,7 @@ function update_catalog() { delete_blog_option( $blog_id, \Aldine\Admin\BLOG_OPTION ); update_site_meta( $blog_id, BookDataCollector::IN_CATALOG, 0 ); // Exclude book when network option book directory non-catalog exclude is enabled - $option = get_site_option( pressbooks_sharingandprivacy_options, [], true ); + $option = get_site_option( 'pressbooks_sharingandprivacy_options', [], true ); if ( isset( $option[ SharingAndPrivacyOptions::NETWORK_DIRECTORY_EXCLUDED ] ) && ( (bool) $option[ SharingAndPrivacyOptions::NETWORK_DIRECTORY_EXCLUDED ] === true )