Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
This commit is contained in:
kkmuffme 2024-11-14 16:45:42 +01:00 committed by GitHub
parent 7f32086ae0
commit 3e91243b70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
Significance: patch
Type: tweak
Comment: Fix: woocommerce_upsell_display was receiving a string instead of an integer in $limit

View File

@ -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 $orderby Supported values - rand, title, ID, date, modified, menu_order, price.
* @param string $order Sort direction. * @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; global $product;
if ( ! $product ) { if ( ! $product ) {