PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← 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() {