Skip to content

Commit f0c1ec0

Browse files
committed
Default sandboxing to off, requiring filter to enable instead of WP_DEBUG
1 parent 3607cfd commit f0c1ec0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/SandboxingLevels.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,9 @@ final class SandboxingLevels implements Service, Registerable, Conditional {
4848
/**
4949
* Whether service is needed.
5050
*
51-
* This is experimental.
52-
*
5351
* @return bool
5452
*/
5553
public static function is_needed() {
56-
// @todo This is a hack to prevent the service from running in the unit tests.
57-
if ( defined( 'TESTS_PLUGIN_DIR' ) ) {
58-
return false;
59-
}
60-
6154
/**
6255
* Filters whether experimental sandboxing is enabled.
6356
*
@@ -66,7 +59,7 @@ public static function is_needed() {
6659
*
6760
* @param bool $enabled Sandboxing enabled.
6861
*/
69-
return (bool) apply_filters( 'amp_experimental_sandboxing_enabled', defined( 'WP_DEBUG' ) && WP_DEBUG );
62+
return (bool) apply_filters( 'amp_experimental_sandboxing_enabled', false );
7063
}
7164

7265
/**

0 commit comments

Comments
 (0)