Skip to content

Commit

Permalink
Update SiteGenService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Jul 26, 2024
1 parent 331d65c commit 83c3bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Services/SiteGenService.php
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ public static function publish_sitemap_pages( $site_description, $content_style,
continue;
}

$page_name = count( explode( '/', $page['path'] ) ) > 1 ? explode( '/', $page['path'] )[1] : null;
$page_name = isset( $page['path'] ) && count( explode( '/', $page['path'] ) ) > 1 ? explode( '/', $page['path'] )[1] : null;
$page_content = $other_pages[ $page['slug'] ];
$post_id = SitePagesService::publish_page(
$page['title'],
Expand Down

0 comments on commit 83c3bd7

Please sign in to comment.