Merge pull request #18438 from woocommerce/fix/18437
Fixed number of args passsed to woocommerce_order_item_meta_start
This commit is contained in:
commit
411dd50ce5
|
@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
<?php
|
<?php
|
||||||
echo apply_filters( 'woocommerce_order_item_name', esc_html( $item->get_name() ), $item, false ); // @codingStandardsIgnoreLine
|
echo apply_filters( 'woocommerce_order_item_name', esc_html( $item->get_name() ), $item, false ); // @codingStandardsIgnoreLine
|
||||||
|
|
||||||
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order );
|
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false );
|
||||||
|
|
||||||
wc_display_item_meta( $item );
|
wc_display_item_meta( $item );
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
|
||||||
echo apply_filters( 'woocommerce_order_item_name', $product_permalink ? sprintf( '<a href="%s">%s</a>', $product_permalink, $item->get_name() ) : $item->get_name(), $item, $is_visible );
|
echo apply_filters( 'woocommerce_order_item_name', $product_permalink ? sprintf( '<a href="%s">%s</a>', $product_permalink, $item->get_name() ) : $item->get_name(), $item, $is_visible );
|
||||||
echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '× %s', $item->get_quantity() ) . '</strong>', $item );
|
echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '× %s', $item->get_quantity() ) . '</strong>', $item );
|
||||||
|
|
||||||
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order );
|
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false );
|
||||||
|
|
||||||
wc_display_item_meta( $item );
|
wc_display_item_meta( $item );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue