From f553c9644fb94d6a8640623a406f3947fbf23d9f Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 20 May 2024 15:07:13 -0400 Subject: [PATCH] remove atomic detection it has been moved to a standalone module --- bootstrap.php | 5 --- composer.json | 3 +- includes/StagingFeatureHooks.php | 66 -------------------------------- 3 files changed, 1 insertion(+), 73 deletions(-) delete mode 100644 bootstrap.php delete mode 100644 includes/StagingFeatureHooks.php diff --git a/bootstrap.php b/bootstrap.php deleted file mode 100644 index c89a79c..0000000 --- a/bootstrap.php +++ /dev/null @@ -1,5 +0,0 @@ -shouldDisable() ) { - $value = false; - } - return $value; - } - - /** - * Maybe disable the feature. - * - * @return void - */ - public function maybeDisable() { - if ( $this->shouldDisable() ) { - disableFeature( 'staging' ); - } - } - - /** - * Context condition for disabling feature. - * - * @return boolean whether the feature should be disabled - */ - public function shouldDisable() { - // check for atomic context - return 'atomic' === getContext( 'platform' ); - } -}