Skip to content

Commit

Permalink
Update SitePagesController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Jan 30, 2024
1 parent 109281a commit 70edfd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/RestApi/SitePagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ public function publish_sitegen_site_pages() {

foreach ( $site_pages as $key => $site_page ) {

$page_data = $this->publish_page( $key, $site_page['content'], false );
if ( is_wp_error( $page_data ) ) {
return $page_data;
}
}

return true;
Expand Down

0 comments on commit 70edfd6

Please sign in to comment.