Skip to content

Commit

Permalink
Help Center: extend support interaction API (#40131)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcangelini authored and matticbot committed Nov 11, 2024
1 parent e46e259 commit aba8f11
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 88 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-mu-wpcom": "^5.66.0"
"automattic/jetpack-mu-wpcom": "^5.66.1-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
Expand Down
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.66.1-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

## [5.66.0] - 2024-11-11
### Added
- Added a feature check to the Marketing Bar that updates the text and upgrade link for Global Styles [#40068]
Expand Down Expand Up @@ -1307,6 +1311,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Testing initial package release.

[5.66.1-alpha]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.66.0...v5.66.1-alpha
[5.66.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.65.0...v5.66.0
[5.65.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.64.0...v5.65.0
[5.64.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.63.0...v5.64.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Jetpack_Mu_Wpcom main class.
*/
class Jetpack_Mu_Wpcom {
const PACKAGE_VERSION = '5.66.0';
const PACKAGE_VERSION = '5.66.1-alpha';
const PKG_DIR = __DIR__ . '/../';
const BASE_DIR = __DIR__ . '/';
const BASE_FILE = __FILE__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,14 @@ public function update_support_interaction_status( \WP_REST_Request $request ) {

$status = $request['status'];

$body = Client::wpcom_json_api_request_as_user( "/support-interactions/$support_interaction_id/status?status={$status}" );
$body = Client::wpcom_json_api_request_as_user(
"/support-interactions/$support_interaction_id/status",
'2',
array(
'method' => 'PUT',
'body' => array( 'status' => $status ),
)
);

if ( is_wp_error( $body ) ) {
return $body;
Expand Down
Loading

0 comments on commit aba8f11

Please sign in to comment.