Fix download link

This commit is contained in:
Mike Jolley 2017-11-13 16:10:32 +00:00
parent eddd7fbfb4
commit f1f30fc8de
1 changed files with 2 additions and 5 deletions

View File

@ -45,17 +45,14 @@ if ( ! defined( 'ABSPATH' ) ) {
</td> </td>
<td> <td>
<label><?php _e( 'Downloads completed', 'woocommerce' ); ?></label> <label><?php _e( 'Downloads completed', 'woocommerce' ); ?></label>
<?php echo esc_html( number_format_i18n( $download->get_download_count() ) ); ?>
</td>
<td>
<?php <?php
$report_url = add_query_arg( $report_url = add_query_arg(
'permission_id', 'permission_id',
rawurlencode( $download->get_id() ), rawurlencode( $download->get_id() ),
admin_url( 'admin.php?page=wc-reports&tab=products&report=downloads' ) admin_url( 'admin.php?page=wc-reports&tab=orders&report=downloads' )
); );
echo '<a href="' . esc_url( $report_url ) . '">'; echo '<a href="' . esc_url( $report_url ) . '">';
_e( 'View download logs', 'woocommerce' ); echo esc_html( number_format_i18n( $download->get_download_count() ) );
echo '</a>'; echo '</a>';
?> ?>
</td> </td>