From ce61e3d839bb02c281786402488f1ca76c52f285 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Fri, 31 May 2024 11:31:41 -0400 Subject: [PATCH] clean up filter to its own line --- upgrades/1.1.18.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/upgrades/1.1.18.php b/upgrades/1.1.18.php index 4abb49f..1e09ffa 100644 --- a/upgrades/1.1.18.php +++ b/upgrades/1.1.18.php @@ -12,10 +12,8 @@ add_action( 'newfold_container_set', function ( Container $container ) { $isFreshInstall = $container->has( 'isFreshInstallation' ) ? $container->get( 'isFreshInstallation' ) : false; - if ( apply_filters( - 'newfold/coming-soon/filter/default/fresh', - $isFreshInstall - ) ) { + $isFreshInstall = apply_filters( 'newfold/coming-soon/filter/default/fresh', $isFreshInstall ); + if ( $isFreshInstall ) { $comingSoonService = new Service(); $comingSoonService->enable( false );