Skip to content

Commit

Permalink
[#495] getting active nav post id
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget committed Mar 4, 2024
1 parent 9b14215 commit 2cf3ba9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client-mu-plugins/goodbids/src/classes/Network/Sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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(),
];

Expand Down

0 comments on commit 2cf3ba9

Please sign in to comment.