diff --git a/admin/post-types/writepanels/order-download-permission-html.php b/admin/post-types/writepanels/order-download-permission-html.php index 2b107a768a5..0ee5bc55dc9 100644 --- a/admin/post-types/writepanels/order-download-permission-html.php +++ b/admin/post-types/writepanels/order-download-permission-html.php @@ -8,7 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly get_file_download_path( $download->download_id ) ); - $filename = basename( $filename_parts['path'] ); + $filename = basename( $filename_parts['path'] ); ?> id ) . ' — ' . apply_filters( 'woocommerce_admin_download_permissions_title', $product->get_title(), $download->product_id, $download->order_id, $download->order_key, $download->download_id ) . ' — ' . sprintf( __( 'File %d: %s', 'woocommerce' ), $file_count, $filename ) . ' — ' . sprintf( _n('Downloaded %s time', 'Downloaded %s times', absint( $download->download_count ), 'woocommerce'), absint( $download->download_count ) ); ?>