Merge pull request #12028 from woocommerce/fix-downloads-url

Fixed the download URL in my downloads page
This commit is contained in:
Claudio Sanches 2016-10-05 16:38:15 -03:00 committed by GitHub
commit d33f1443be
1 changed files with 1 additions and 1 deletions

View File

@ -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;