Merge pull request #24601 from nikhil-webkul/patch-4
Update abstract-wc-legacy-order.php
This commit is contained in:
commit
2b9f1fe020
|
@ -505,7 +505,7 @@ abstract class WC_Abstract_Legacy_Order extends WC_Data {
|
|||
$i++;
|
||||
/* translators: 1: current item count */
|
||||
$prefix = count( $download_files ) > 1 ? sprintf( __( 'Download %d', 'woocommerce' ), $i ) : __( 'Download', 'woocommerce' );
|
||||
$links[] = '<small class="download-url">' . $prefix . ': <a href="' . esc_url( $file['download_url'] ) . '" target="_blank">' . esc_html( $file['name'] ) . '</a></small>' . "\n";
|
||||
$links[] = '<small class="download-url">' . esc_html( $prefix ) . ': <a href="' . esc_url( $file['download_url'] ) . '" target="_blank">' . esc_html( $file['name'] ) . '</a></small>' . "\n";
|
||||
}
|
||||
|
||||
echo '<br/>' . implode( '<br/>', $links );
|
||||
|
|
Loading…
Reference in New Issue