Fix: Use correct posts_per_page var in related_products shortcode

This commit is contained in:
Mike Jolley 2016-06-08 10:39:28 +01:00
parent bd2342a0a5
commit 93383668cb
1 changed files with 3 additions and 0 deletions

View File

@ -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();