In-app Marketplace: gracefully handle products with no vendorUrl (#40271)
This commit is contained in:
commit
e4d6933e26
|
@ -22,12 +22,14 @@ export default function ProductListContent( props: {
|
||||||
title: product.title,
|
title: product.title,
|
||||||
icon: product.icon,
|
icon: product.icon,
|
||||||
vendorName: product.vendorName,
|
vendorName: product.vendorName,
|
||||||
vendorUrl: appendURLParams( product.vendorUrl, [
|
vendorUrl: product.vendorUrl
|
||||||
|
? appendURLParams( product.vendorUrl, [
|
||||||
[ 'utm_source', 'extensionsscreen' ],
|
[ 'utm_source', 'extensionsscreen' ],
|
||||||
[ 'utm_medium', 'product' ],
|
[ 'utm_medium', 'product' ],
|
||||||
[ 'utm_campaign', 'wcaddons' ],
|
[ 'utm_campaign', 'wcaddons' ],
|
||||||
[ 'utm_content', 'devpartner' ],
|
[ 'utm_content', 'devpartner' ],
|
||||||
] ),
|
] )
|
||||||
|
: '',
|
||||||
price: product.price,
|
price: product.price,
|
||||||
url: appendURLParams(
|
url: appendURLParams(
|
||||||
product.url,
|
product.url,
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
Comment: More-resilient handling of absent product vendor URLs when browsing WooCommerce > Extensions.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue