File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ private function get_products_for_dropdown() {
570570 foreach ( $ products as $ product ) {
571571 $ product_obj = wc_get_product ( $ product ->ID );
572572 if ( $ product_obj && $ product_obj ->is_purchasable () && $ product_obj ->is_visible () ) {
573- $ product_options [ $ product ->ID ] = esc_html ( $ product_obj ->get_name () ) . ' (ID: ' . absint ( $ product ->ID ) . ') ' ;
573+ $ product_options [ $ product ->ID ] = esc_html ( $ product_obj ->get_name () ) . ' (ID: ' . esc_html ( ( string ) $ product ->ID ) . ') ' ;
574574 }
575575 }
576576
Original file line number Diff line number Diff line change @@ -24,4 +24,7 @@ parameters:
2424 - ' #Instantiated class WC_Coupon not found #'
2525 - ' #Call to method .* on an unknown class WC_Coupon #'
2626 - ' #Method .* of an unknown class WC_Coupon #'
27- - ' #Parameter .* of method .* expects WC_Product #'
27+ - ' #Parameter .* of method .* expects WC_Product #'
28+ - ' #Parameter .* of method .* has invalid type WC_Coupon #'
29+ - ' #Class WC_Coupon not found #'
30+ - ' #Parameter \$coupon of method .* has invalid type WC_Coupon #'
You can’t perform that action at this time.
0 commit comments