| @@ -4,10 +4,8 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -use Automattic\Jetpack\Feature_Policy; | |
| 9 | - | |
| 10 | 8 | /** |
| 11 | 9 | * Provides methods for dealing with module overrides. |
| 12 | 10 | * |
| 13 | 11 | * @since 5.9.0 |
| @@ -38,12 +36,8 @@ | ||
| 38 | 36 | * |
| 39 | 37 | * @return bool Whether there is a filter on the jetpack_active_modules option. |
| 40 | 38 | */ |
| 41 | 39 | public function do_overrides_exist() { |
| 42 | - if ( method_exists( Feature_Policy::class, 'ensure_hooks' ) ) { | |
| 43 | - Feature_Policy::ensure_hooks(); | |
| 44 | - } | |
| 45 | - | |
| 46 | 40 | return ( has_filter( 'option_jetpack_active_modules' ) || has_filter( 'jetpack_active_modules' ) ); |
| 47 | 41 | } |
| 48 | 42 | |
| 49 | 43 | /** |