fix: label improvement on my order pages (#48374)
* fix: label improvement on my order pages * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/48374-fix-label-improvement-on-my-orders * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/48374-fix-label-improvement-on-my-orders * Add changefile(s) from automation for the following project(s): woocommerce * version bump * Update plugins/woocommerce/changelog/48374-fix-label-improvement-on-my-orders * Add changefile(s) from automation for the following project(s): woocommerce * Add changefile(s) from automation for the following project(s): woocommerce * linting --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
24391fba0f
commit
bd9b2ee4b8
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
|
||||
fix: label improvement on my order page template
|
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
* @see https://woocommerce.com/document/template-structure/
|
||||
* @package WooCommerce\Templates
|
||||
* @version 8.5.0
|
||||
* @version 9.1.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
@ -45,7 +45,8 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?>
|
|||
<?php do_action( 'woocommerce_my_account_my_orders_column_' . $column_id, $order ); ?>
|
||||
|
||||
<?php elseif ( 'order-number' === $column_id ) : ?>
|
||||
<a href="<?php echo esc_url( $order->get_view_order_url() ); ?>">
|
||||
<?php /* translators: %s: the order number, usually accompanied by a leading # */ ?>
|
||||
<a href="<?php echo esc_url( $order->get_view_order_url() ); ?>" aria-label="<?php echo esc_attr( sprintf( __( 'View order number %s', 'woocommerce' ), $order->get_order_number() ) ); ?>">
|
||||
<?php echo esc_html( _x( '#', 'hash before order number', 'woocommerce' ) . $order->get_order_number() ); ?>
|
||||
</a>
|
||||
|
||||
|
|
Loading…
Reference in New Issue