Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Jetpack_Settings_Feature_Flags | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| register | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Jetpack Settings feature flags. |
| 4 | * |
| 5 | * @package automattic/jetpack |
| 6 | */ |
| 7 | |
| 8 | use Automattic\Jetpack\Feature_Flags\Feature_Flags; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit( 0 ); |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Registers feature flags owned by the Jetpack Settings page. |
| 16 | * |
| 17 | * @since 16.3 |
| 18 | */ |
| 19 | class Jetpack_Settings_Feature_Flags { |
| 20 | |
| 21 | const WP_BUILD = 'jetpack-settings-wp-build'; |
| 22 | |
| 23 | /** |
| 24 | * Register the Settings feature flags. |
| 25 | * |
| 26 | * @return void |
| 27 | */ |
| 28 | public static function register() { |
| 29 | Feature_Flags::register( |
| 30 | self::WP_BUILD, |
| 31 | array( |
| 32 | 'default' => true, |
| 33 | 'description' => 'Render Jetpack Settings through wp-build. Turn it off to serve the webpack page at the same address.', |
| 34 | 'owner' => 'jetpack', |
| 35 | ) |
| 36 | ); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | Jetpack_Settings_Feature_Flags::register(); |