Skip to content

Commit 83fa3f5

Browse files
committed
fix: purchase url for list shortcode broken
1 parent aeae0c3 commit 83fa3f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/shortcodes/list.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if ( ! empty( $args['data'] ) ) {
1313
foreach ( $args['data'] as $object ) {
1414
$purchase_product = wp_zoom_get_purchase_product( $object['id'] );
15-
$purchase_url = $purchase_product ? get_permalink( $purchase_products ) : null;
15+
$purchase_url = $purchase_product ? get_permalink( $purchase_product ) : null;
1616

1717
wp_zoom_load_template(
1818
'shortcodes/list-single.php',

0 commit comments

Comments
 (0)