From 65bf73835de77ba4cfc3466a6f9c64ea6101ae6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Fri, 21 Apr 2023 19:02:48 +0300 Subject: [PATCH 1/8] Add order-again button class --- plugins/woocommerce/includes/wc-template-functions.php | 1 + plugins/woocommerce/templates/order/order-again.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce/includes/wc-template-functions.php b/plugins/woocommerce/includes/wc-template-functions.php index 09a1c18eb34..9429164250d 100644 --- a/plugins/woocommerce/includes/wc-template-functions.php +++ b/plugins/woocommerce/includes/wc-template-functions.php @@ -2747,6 +2747,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/order/order-again.php b/plugins/woocommerce/templates/order/order-again.php index f7bc2242cdd..78cc5018088 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 x.x.x */ defined( 'ABSPATH' ) || exit; ?>

- +

From 43bd3177972ace948b3170f5a60504420bc296be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Fri, 21 Apr 2023 19:03:04 +0300 Subject: [PATCH 2/8] Add no-downloads button class --- plugins/woocommerce/templates/myaccount/downloads.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce/templates/myaccount/downloads.php b/plugins/woocommerce/templates/myaccount/downloads.php index 7d445faacdd..fc00fadb3b7 100644 --- a/plugins/woocommerce/templates/myaccount/downloads.php +++ b/plugins/woocommerce/templates/myaccount/downloads.php @@ -14,7 +14,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 7.8.0 + * @version x.x.x */ if ( ! defined( 'ABSPATH' ) ) { @@ -35,8 +35,12 @@ 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 + ?> From ddb399b4aa384c7056ad83323da220f04019f887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Fri, 21 Apr 2023 19:03:28 +0300 Subject: [PATCH 3/8] Add order-pagination button class --- plugins/woocommerce/templates/myaccount/orders.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/woocommerce/templates/myaccount/orders.php b/plugins/woocommerce/templates/myaccount/orders.php index 315f9a25fd1..9452964c3cd 100644 --- a/plugins/woocommerce/templates/myaccount/orders.php +++ b/plugins/woocommerce/templates/myaccount/orders.php @@ -14,7 +14,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 7.8.0 + * @version x.x.x */ defined( 'ABSPATH' ) || exit; @@ -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 ?> From e30983ef5920ed37e657496681e7a30c4900fd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Fri, 21 Apr 2023 19:07:32 +0300 Subject: [PATCH 4/8] Add changelog --- plugins/woocommerce/changelog/add-tt3-comp-button-classes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 plugins/woocommerce/changelog/add-tt3-comp-button-classes 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 From dab5f98aea17a874e0d8b26742e604f66844d11a Mon Sep 17 00:00:00 2001 From: Chris Lilitsas Date: Fri, 5 May 2023 15:36:08 +0300 Subject: [PATCH 5/8] Fix typo for echoing the class name Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com> --- plugins/woocommerce/templates/order/order-again.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/templates/order/order-again.php b/plugins/woocommerce/templates/order/order-again.php index 78cc5018088..7fa898c63c4 100644 --- a/plugins/woocommerce/templates/order/order-again.php +++ b/plugins/woocommerce/templates/order/order-again.php @@ -19,5 +19,5 @@ defined( 'ABSPATH' ) || exit; ?>

- +

From 92287f75578ada4a89aad9e5921d19473d8b0fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Mon, 8 May 2023 22:00:21 +0300 Subject: [PATCH 6/8] Make phpcs happy --- plugins/woocommerce/templates/myaccount/downloads.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce/templates/myaccount/downloads.php b/plugins/woocommerce/templates/myaccount/downloads.php index fc00fadb3b7..fd4bd9abd2e 100644 --- a/plugins/woocommerce/templates/myaccount/downloads.php +++ b/plugins/woocommerce/templates/myaccount/downloads.php @@ -35,9 +35,9 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?> - - ' . esc_html__( 'Browse products', 'woocommerce' ) . '', 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ?> From 66c5a16e2e87c5d5d616f3557e790c07f712c68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Mon, 15 May 2023 14:24:27 +0300 Subject: [PATCH 7/8] Bump template versions --- plugins/woocommerce/templates/myaccount/downloads.php | 2 +- plugins/woocommerce/templates/myaccount/orders.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce/templates/myaccount/downloads.php b/plugins/woocommerce/templates/myaccount/downloads.php index fd4bd9abd2e..4139ea47ab3 100644 --- a/plugins/woocommerce/templates/myaccount/downloads.php +++ b/plugins/woocommerce/templates/myaccount/downloads.php @@ -14,7 +14,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version x.x.x + * @version 7.8.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/plugins/woocommerce/templates/myaccount/orders.php b/plugins/woocommerce/templates/myaccount/orders.php index 9452964c3cd..6e6ad423a53 100644 --- a/plugins/woocommerce/templates/myaccount/orders.php +++ b/plugins/woocommerce/templates/myaccount/orders.php @@ -14,7 +14,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version x.x.x + * @version 7.8.0 */ defined( 'ABSPATH' ) || exit; From f1b1df93d1bcb969008efb537e7a5efcb3fbecd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CChris?= Date: Mon, 15 May 2023 14:25:18 +0300 Subject: [PATCH 8/8] Bump order-again template --- plugins/woocommerce/templates/order/order-again.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/templates/order/order-again.php b/plugins/woocommerce/templates/order/order-again.php index 7fa898c63c4..f7202ff7e49 100644 --- a/plugins/woocommerce/templates/order/order-again.php +++ b/plugins/woocommerce/templates/order/order-again.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version x.x.x + * @version 7.8.0 */ defined( 'ABSPATH' ) || exit;