From 4edc4aa98311f6d9a6e1e3fb558efafc3084cfe1 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Tue, 16 Jan 2024 00:22:34 +0530 Subject: [PATCH 1/2] Add homepages to wonder blocks --- includes/WP_Admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/WP_Admin.php b/includes/WP_Admin.php index 8cb78077f..0ec789e1d 100644 --- a/includes/WP_Admin.php +++ b/includes/WP_Admin.php @@ -6,6 +6,7 @@ use NewfoldLabs\WP\Module\Onboarding\Services\PluginService; use NewfoldLabs\WP\Module\Onboarding\Services\ThemeService; use NewfoldLabs\WP\Module\Onboarding\Data\Services\FlowService; +use NewfoldLabs\WP\Module\Onboarding\Data\Services\SiteGenService; use NewfoldLabs\WP\Module\Onboarding\Data\Themes; use NewfoldLabs\WP\Module\Onboarding\Services\I18nService; @@ -32,6 +33,7 @@ public function __construct() { \add_action( 'load-dashboard_page_' . self::$slug, array( __CLASS__, 'initialize' ) ); if ( 'sitegen' === Data::current_flow() ) { \add_action( 'load-themes.php', array( __CLASS__, 'mark_sitegen_generated_themes' ) ); + SiteGenService::filter_wonder_blocks_transients(); } } From 725407ac62833b349ef8d9a376d1225b5d40e375 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Tue, 16 Jan 2024 00:27:45 +0530 Subject: [PATCH 2/2] Update function name --- includes/WP_Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WP_Admin.php b/includes/WP_Admin.php index 0ec789e1d..d702af322 100644 --- a/includes/WP_Admin.php +++ b/includes/WP_Admin.php @@ -33,7 +33,7 @@ public function __construct() { \add_action( 'load-dashboard_page_' . self::$slug, array( __CLASS__, 'initialize' ) ); if ( 'sitegen' === Data::current_flow() ) { \add_action( 'load-themes.php', array( __CLASS__, 'mark_sitegen_generated_themes' ) ); - SiteGenService::filter_wonder_blocks_transients(); + SiteGenService::pre_set_filter_wonder_blocks_transients(); } }