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/json-api-jetpack-endpoints.php +10 -2 12.1.3 → 16.3-a.5 View file →
@@ -1,6 +1,10 @@
1 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2 2
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit( 0 );
5 +}
6 +
3 7 $json_jetpack_endpoints_dir = __DIR__ . '/';
4 8
5 9 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-endpoint.php';
6 10
@@ -83,10 +87,13 @@
83 87 'example_request' => 'https://public-api.wordpress.com/rest/v1/sites/example.wordpress.org/themes',
84 88 )
85 89 );
86 90
91 +require_once $json_jetpack_endpoints_dir . 'class-jetpack-json-api-attachment-ownership-trait.php';
92 +
87 93 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-themes-get-endpoint.php';
88 94 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-themes-new-endpoint.php';
95 +require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-themes-replace-endpoint.php';
89 96
90 97 // POST /sites/%s/themes/%new
91 98 new Jetpack_JSON_API_Themes_New_Endpoint(
92 99 array(
@@ -98,9 +105,9 @@
98 105 'path_labels' => array(
99 106 '$site' => '(int|string) The site ID, The site domain',
100 107 ),
101 108 'request_format' => array(
102 - 'zip' => '(zip) Theme package zip file. multipart/form-data encoded. ',
109 + 'zip' => '(array) Reference to an uploaded theme package zip file.',
103 110 ),
104 111 'response_format' => Jetpack_JSON_API_Themes_Endpoint::$_response_format,
105 112 'allow_jetpack_site_auth' => true,
106 113 'example_request_data' => array(
@@ -251,8 +258,9 @@
251 258 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-endpoint.php';
252 259 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-get-endpoint.php';
253 260 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-list-endpoint.php';
254 261 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-new-endpoint.php';
262 +require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-replace-endpoint.php';
255 263 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-install-endpoint.php';
256 264 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-delete-endpoint.php';
257 265 require_once $json_jetpack_endpoints_dir . 'class.jetpack-json-api-plugins-modify-endpoint.php';
258 266
@@ -1389,9 +1397,9 @@
1389 1397 "email": false,
1390 1398 "name": "binarysmash",
1391 1399 "URL": "http:\/\/binarysmash.wordpress.com",
1392 1400 "avatar_URL": "http:\/\/0.gravatar.com\/avatar\/a178ebb1731d432338e6bb0158720fcc?s=96&d=identicon&r=G",
1393 - "profile_URL": "http:\/\/en.gravatar.com\/binarysmash",
1401 + "profile_URL": "http:\/\/gravatar.com\/binarysmash",
1394 1402 "roles": [ "administrator" ]
1395 1403 }',
1396 1404 'example_request' => 'https://public-api.wordpress.com/rest/v1/sites/example.wordpress.org/users/create',
1397 1405