← All changes
|
jetpack_vendor/automattic/jetpack-backup/src/rest/class-rest-controller.php
+3
-4
16.2
→
16.3-a.7
View file →
| @@ -21,10 +21,10 @@ | ||
| 21 | 21 | * Registers REST routes that back the modernized dashboard. |
| 22 | 22 | * |
| 23 | 23 | * Each bridge class declares its routes via `register_routes()` and uses |
| 24 | 24 | * the shared `permission_check()` helper for the `manage_options` gate. |
| 25 | - * Routes only register when the modernization filter is on, so the | |
| 26 | - * legacy plugin is byte-identical when the flag is off. | |
| 25 | + * Routes only register when `is_modernized()` is true, so the | |
| 26 | + * legacy plugin is byte-identical when it is false. | |
| 27 | 27 | */ |
| 28 | 28 | class Rest_Controller { |
| 29 | 29 | |
| 30 | 30 | /** |
| @@ -63,10 +63,9 @@ | ||
| 63 | 63 | 'paths', |
| 64 | 64 | ); |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * Hook entry point. Registers all bridge routes if the modernization | |
| 68 | - * filter is enabled. | |
| 67 | + * Hook entry point. Registers all bridge routes if `is_modernized()` is true. | |
| 69 | 68 | * |
| 70 | 69 | * @return void |
| 71 | 70 | */ |
| 72 | 71 | public static function register_routes() { |