diff options
author | 2017-01-03 19:27:21 -0500 | |
---|---|---|
committer | 2017-01-03 19:27:21 -0500 | |
commit | 8f0ed12d83c648763b1c538698bfa0b3005a88c3 (patch) | |
tree | 130ecb4629dc8a6f8563d93f0c01d12d7f7cccc8 /plugins/jetpack/json-endpoints/jetpack | |
parent | Update plugin jetpack to 4.4.1 (diff) | |
download | blogs-gentoo-8f0ed12d83c648763b1c538698bfa0b3005a88c3.tar.gz blogs-gentoo-8f0ed12d83c648763b1c538698bfa0b3005a88c3.tar.bz2 blogs-gentoo-8f0ed12d83c648763b1c538698bfa0b3005a88c3.zip |
Update plugin jetpack to 4.4.2
Diffstat (limited to 'plugins/jetpack/json-endpoints/jetpack')
-rw-r--r-- | plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-get-endpoint.php | 2 | ||||
-rw-r--r-- | plugins/jetpack/json-endpoints/jetpack/json-api-jetpack-endpoints.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-get-endpoint.php b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-get-endpoint.php index 20a4ac4e..cfc352af 100644 --- a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-get-endpoint.php +++ b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-get-endpoint.php @@ -2,5 +2,5 @@ class Jetpack_JSON_API_Themes_Get_Endpoint extends Jetpack_JSON_API_Themes_Endpoint { // GET /sites/%s/themes/%s - protected $needed_capabilities = 'activate_themes'; + protected $needed_capabilities = 'switch_themes'; } diff --git a/plugins/jetpack/json-endpoints/jetpack/json-api-jetpack-endpoints.php b/plugins/jetpack/json-endpoints/jetpack/json-api-jetpack-endpoints.php index 15b5e735..b5608747 100644 --- a/plugins/jetpack/json-endpoints/jetpack/json-api-jetpack-endpoints.php +++ b/plugins/jetpack/json-endpoints/jetpack/json-api-jetpack-endpoints.php @@ -78,7 +78,7 @@ require_once( $json_jetpack_endpoints_dir . 'class.jetpack-json-api-themes-get-e require_once( $json_jetpack_endpoints_dir . 'class.jetpack-json-api-themes-new-endpoint.php' ); // POST /sites/%s/themes/%new -new Jetpack_JSON_API_Themes_new_Endpoint( array( +new Jetpack_JSON_API_Themes_New_Endpoint( array( 'description' => 'Install a theme to your jetpack blog', 'group' => '__do_not_document', 'stat' => 'themes:new', @@ -105,7 +105,7 @@ new Jetpack_JSON_API_Themes_Get_Endpoint( array( 'description' => 'Get a single theme on a jetpack blog', 'group' => '__do_not_document', 'stat' => 'themes:get:1', - 'method' => 'POST', + 'method' => 'GET', 'path' => '/sites/%s/themes/%s', 'path_labels' => array( '$site' => '(int|string) The site ID, The site domain', |