Skip to content

Commit

Permalink
moving it outside of nav menu logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyakrishnai committed Jul 30, 2024
1 parent 3ab9c30 commit 0ea406b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Services/SiteGenService.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,9 @@ public static function publish_sitemap_pages( $site_description, $content_style,
);
if ( $update_nav_menu && ! is_wp_error( $post_id ) ) {
$navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) );
if ( self::is_products_or_shop_page( $page['slug'] ) ) {
self::set_woo_shop_page( $post_id );
}
}
if ( ! is_wp_error( $post_id ) && self::is_products_or_shop_page( $page['slug'] ) ) {
self::set_woo_shop_page( $post_id );
}
}

Expand Down

0 comments on commit 0ea406b

Please sign in to comment.