From 4046f58e60b57462c7c97547f7088259e6586d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Fri, 13 Oct 2023 14:01:44 +0200 Subject: [PATCH] Remove the update function from bootstrap.php --- src/Domain/Bootstrap.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Domain/Bootstrap.php b/src/Domain/Bootstrap.php index 6923c1fe50e..244b4745ae8 100644 --- a/src/Domain/Bootstrap.php +++ b/src/Domain/Bootstrap.php @@ -106,7 +106,6 @@ protected function init() { if ( $this->package->get_version() !== $this->package->get_version_stored_on_db() ) { $this->migration->run_migrations(); $this->package->set_version_stored_on_db(); - $this->update_patterns_content(); } add_action( @@ -530,20 +529,4 @@ function( Container $container ) { } ); } - - /** - * Update the patterns content if the store description is present. - * - * @return void - */ - private function update_patterns_content() { - $block_patterns = $this->container->get( BlockPatterns::class ); - - $store_description = get_option( VerticalsSelector::STORE_DESCRIPTION_OPTION_KEY ); - if ( ! $store_description ) { - return; - } - - $block_patterns->update_patterns_content( $store_description ); - } }