PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
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 | json-endpoints/jetpack/class.jetpack-json-api-plugins-list-endpoint.php +8 -0 13.2.4 → 16.3-a.5 View file →
@@ -1,11 +1,17 @@
1 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2 2
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit( 0 );
5 +}
6 +
3 7 new Jetpack_JSON_API_Plugins_List_Endpoint(
4 8 array(
5 9 'description' => 'Get installed Plugins on your blog',
6 10 'method' => 'GET',
7 11 'path' => '/sites/%s/plugins',
12 + 'rest_route' => '/plugins',
13 + 'rest_min_jp_version' => '15.9',
8 14 'stat' => 'plugins',
9 15 'min_version' => '1',
10 16 'max_version' => '1.1',
11 17 'path_labels' => array(
@@ -29,8 +35,10 @@
29 35 *
30 36 * GET /sites/%s/plugins
31 37 *
32 38 * No v1.2 versions since they are .com only
39 + *
40 + * @phan-constructor-used-for-side-effects
33 41 */
34 42 class Jetpack_JSON_API_Plugins_List_Endpoint extends Jetpack_JSON_API_Plugins_Endpoint {
35 43 /**
36 44 * Needed capabilities.