Fix `get_options` deprecation notice (#38289)

* Fix get_options deprecation notice

* Add changelog

* Remove duplicates
This commit is contained in:
Chi-Hsuan Huang 2023-05-16 09:36:20 +08:00 committed by GitHub
parent 5013232b9e
commit 8d249841b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix get_options deprecation notice

View File

@ -183,6 +183,14 @@ class Options extends \WC_REST_Data_Controller {
'woocommerce_admin_created_default_shipping_zones',
'woocommerce_admin_reviewed_default_shipping_zones',
'woocommerce_admin_reviewed_store_location_settings',
'woocommerce_ces_product_feedback_shown',
'woocommerce_marketing_overview_multichannel_banner_dismissed',
'woocommerce_dimension_unit',
'woocommerce_weight_unit',
'woocommerce_ces_product_mvp_ces_action',
'woocommerce_product_tour_modal_hidden',
'woocommerce_revenue_report_date_tour_shown',
'woocommerce_date_type',
);
$theme_permissions = array(