diff --git a/includes/RestApi/SitePagesController.php b/includes/RestApi/SitePagesController.php index 349d7752d..1236d28e8 100644 --- a/includes/RestApi/SitePagesController.php +++ b/includes/RestApi/SitePagesController.php @@ -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;