Merge pull request #12028 from woocommerce/fix-downloads-url
Fixed the download URL in my downloads page
This commit is contained in:
commit
d33f1443be
|
@ -54,7 +54,7 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
|
||||||
</a>
|
</a>
|
||||||
<?php break;
|
<?php break;
|
||||||
case 'download-file' : ?>
|
case 'download-file' : ?>
|
||||||
<a href="<?php echo esc_url( get_permalink( $download['product_id'] ) ); ?>" class="woocommerce-MyAccount-downloads-file">
|
<a href="<?php echo esc_url( $download['download_url'] ); ?>" class="woocommerce-MyAccount-downloads-file">
|
||||||
<?php echo esc_html( $download['file_name'] ); ?>
|
<?php echo esc_html( $download['file_name'] ); ?>
|
||||||
</a>
|
</a>
|
||||||
<?php break;
|
<?php break;
|
||||||
|
|
Loading…
Reference in New Issue