Fix: Use correct posts_per_page var in related_products shortcode
This commit is contained in:
parent
bd2342a0a5
commit
93383668cb
|
@ -821,6 +821,9 @@ class WC_Shortcodes {
|
|||
|
||||
ob_start();
|
||||
|
||||
// Rename arg
|
||||
$atts['posts_per_page'] = absint( $atts['per_page'] );
|
||||
|
||||
woocommerce_related_products( $atts );
|
||||
|
||||
return ob_get_clean();
|
||||
|
|
Loading…
Reference in New Issue