Fix download link
This commit is contained in:
parent
eddd7fbfb4
commit
f1f30fc8de
|
@ -45,17 +45,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</td>
|
||||
<td>
|
||||
<label><?php _e( 'Downloads completed', 'woocommerce' ); ?></label>
|
||||
<?php echo esc_html( number_format_i18n( $download->get_download_count() ) ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
$report_url = add_query_arg(
|
||||
'permission_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 ) . '">';
|
||||
_e( 'View download logs', 'woocommerce' );
|
||||
echo esc_html( number_format_i18n( $download->get_download_count() ) );
|
||||
echo '</a>';
|
||||
?>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue