From 70edfd6bca9a9af5996c48c06020069060388662 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Tue, 30 Jan 2024 17:19:47 +0530 Subject: [PATCH] Update SitePagesController.php --- includes/RestApi/SitePagesController.php | 4 ++++ 1 file changed, 4 insertions(+) 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;