From 45c9361efe1574816103662afe2efb9020e9a654 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Wed, 21 Feb 2024 14:37:15 +0530 Subject: [PATCH] Sitegen: Wonder Blocks Fixes and Prioritization --- includes/Services/SiteGenService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index ef73fe3..4f16261 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -669,11 +669,12 @@ public static function filter_wonder_blocks_templates_transient( $value ) { } foreach ( $homepages as $index => $data ) { - array_push( + array_unshift( $value, array( 'id' => $data['slug'], 'slug' => $data['slug'], + 'title' => $data['slug'], 'description' => $data['slug'], 'content' => $data['content'], 'categories' => array( 'home', 'featured' ),