Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Remove the update function from bootstrap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
albarin committed Oct 13, 2023
1 parent 207e733 commit 4046f58
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Domain/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 );
}
}

0 comments on commit 4046f58

Please sign in to comment.