Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
This commit is contained in:
parent
7f32086ae0
commit
3e91243b70
|
@ -0,0 +1,5 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
|
||||
Comment: Fix: woocommerce_upsell_display was receiving a string instead of an integer in $limit
|
||||
|
|
@ -2200,7 +2200,7 @@ if ( ! function_exists( 'woocommerce_upsell_display' ) ) {
|
|||
* @param string $orderby Supported values - rand, title, ID, date, modified, menu_order, price.
|
||||
* @param string $order Sort direction.
|
||||
*/
|
||||
function woocommerce_upsell_display( $limit = '-1', $columns = 4, $orderby = 'rand', $order = 'desc' ) {
|
||||
function woocommerce_upsell_display( $limit = -1, $columns = 4, $orderby = 'rand', $order = 'desc' ) {
|
||||
global $product;
|
||||
|
||||
if ( ! $product ) {
|
||||
|
|
Loading…
Reference in New Issue