Merge pull request #9109 from SiR-DanieL/related-products-args

Wrong per_page attribute
This commit is contained in:
Claudio Sanches 2015-09-11 18:24:56 -03:00
commit 03ed840a79
1 changed files with 1 additions and 1 deletions

View File

@ -779,7 +779,7 @@ class WC_Shortcodes {
*/ */
public static function related_products( $atts ) { public static function related_products( $atts ) {
$atts = shortcode_atts( array( $atts = shortcode_atts( array(
'posts_per_page' => '4', 'per_page' => '4',
'columns' => '4', 'columns' => '4',
'orderby' => 'rand' 'orderby' => 'rand'
), $atts ); ), $atts );