diff --git a/plugins/woocommerce/changelog/add-tt3-comp-button-classes b/plugins/woocommerce/changelog/add-tt3-comp-button-classes new file mode 100644 index 00000000000..935235e217f --- /dev/null +++ b/plugins/woocommerce/changelog/add-tt3-comp-button-classes @@ -0,0 +1,4 @@ +Significance: minor +Type: enhancement + +Added missing button element classes in account orders and downloads pages diff --git a/plugins/woocommerce/includes/wc-template-functions.php b/plugins/woocommerce/includes/wc-template-functions.php index 57384a00ca2..4d0ef67c979 100644 --- a/plugins/woocommerce/includes/wc-template-functions.php +++ b/plugins/woocommerce/includes/wc-template-functions.php @@ -2752,6 +2752,7 @@ if ( ! function_exists( 'woocommerce_order_again_button' ) ) { 'order/order-again.php', array( 'order' => $order, + 'wp_button_class' => wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '', 'order_again_url' => wp_nonce_url( add_query_arg( 'order_again', $order->get_id(), wc_get_cart_url() ), 'woocommerce-order_again' ), ) ); diff --git a/plugins/woocommerce/templates/myaccount/downloads.php b/plugins/woocommerce/templates/myaccount/downloads.php index 7d445faacdd..4139ea47ab3 100644 --- a/plugins/woocommerce/templates/myaccount/downloads.php +++ b/plugins/woocommerce/templates/myaccount/downloads.php @@ -36,7 +36,11 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?> - ' . esc_html__( 'Browse products', 'woocommerce' ) . '', 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ?> + ' . esc_html__( 'Browse products', 'woocommerce' ) . '', 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment + ?> diff --git a/plugins/woocommerce/templates/myaccount/orders.php b/plugins/woocommerce/templates/myaccount/orders.php index 315f9a25fd1..6e6ad423a53 100644 --- a/plugins/woocommerce/templates/myaccount/orders.php +++ b/plugins/woocommerce/templates/myaccount/orders.php @@ -86,18 +86,18 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?> max_num_pages ) : ?>
- + max_num_pages ) !== $current_page ) : ?> - +
- ' . esc_html__( 'Browse products', 'woocommerce' ) . '', 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ?> + ' . esc_html__( 'Browse products', 'woocommerce' ) . '', 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ?> diff --git a/plugins/woocommerce/templates/order/order-again.php b/plugins/woocommerce/templates/order/order-again.php index f7bc2242cdd..f7202ff7e49 100644 --- a/plugins/woocommerce/templates/order/order-again.php +++ b/plugins/woocommerce/templates/order/order-again.php @@ -12,12 +12,12 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 3.5.0 + * @version 7.8.0 */ defined( 'ABSPATH' ) || exit; ?>

- +