Merge pull request #22121 from woocommerce/fix/update-settings-controller

Fix updating settings via the API
This commit is contained in:
Claudio Sanches 2018-12-06 16:49:44 -02:00 committed by GitHub
commit 7cbcaf04e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class WC_REST_Settings_Controller extends WC_REST_Settings_V2_Controller {
* @return WP_Error|WP_REST_Response
*/
public function update_item( $request ) {
$options_controller = new WC_REST_Dev_Setting_Options_Controller();
$options_controller = new WC_REST_Setting_Options_Controller();
$response = $options_controller->update_item( $request );
return $response;