diff --git a/client-mu-plugins/goodbids/src/classes/Network/Sites.php b/client-mu-plugins/goodbids/src/classes/Network/Sites.php index ed58a5146..65d03af75 100644 --- a/client-mu-plugins/goodbids/src/classes/Network/Sites.php +++ b/client-mu-plugins/goodbids/src/classes/Network/Sites.php @@ -1108,7 +1108,7 @@ function ( int $site_id ): void { $about_id = get_option( self::ABOUT_OPTION ); $auctions_id = get_option( self::AUCTIONS_OPTION ); - if ( ! $about_id || ! $auctions_id ) { + if ( ! $about_id && ! $auctions_id ) { return; } @@ -1128,9 +1128,8 @@ function ( int $site_id ): void { ob_start(); goodbids()->load_view( 'parts/nonprofit-navigation.php', compact( 'nav_links' ) ); - // TODO: figure out how to get ID - it is always the first one $navigation_content = [ - 'ID' => $wp_navigation->posts[0]->ID, + 'ID' => $wp_navigation->post->ID, 'post_content' => ob_get_clean(), ];