Fix wrong query param in onboarding product api call (#35926)
* Fix wrong query param in onboarding product api call * Add changelog * Fix lint
This commit is contained in:
parent
884d3f4237
commit
9070cff9c5
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Fix wrong query param in onboarding product api call
|
|
@ -88,10 +88,12 @@ class OnboardingProducts {
|
|||
$woocommerce_products = wp_remote_get(
|
||||
add_query_arg(
|
||||
array(
|
||||
'user-agent' => 'WooCommerce/' . WC()->version . '; ' . get_bloginfo( 'url' ),
|
||||
'locale' => $locale,
|
||||
'locale' => $locale,
|
||||
),
|
||||
'https://woocommerce.com/wp-json/wccom-extensions/1.0/search'
|
||||
),
|
||||
array(
|
||||
'user-agent' => 'WooCommerce/' . WC()->version . '; ' . get_bloginfo( 'url' ),
|
||||
)
|
||||
);
|
||||
if ( is_wp_error( $woocommerce_products ) ) {
|
||||
|
|
Loading…
Reference in New Issue