diff --git a/includes/admin/meta-boxes/views/html-order-download-permission.php b/includes/admin/meta-boxes/views/html-order-download-permission.php
index 6d8bef87242..4abffe0da3d 100644
--- a/includes/admin/meta-boxes/views/html-order-download-permission.php
+++ b/includes/admin/meta-boxes/views/html-order-download-permission.php
@@ -35,28 +35,28 @@ if ( ! defined( 'ABSPATH' ) ) {
$download->get_product_id(),
- 'order' => $download->get_order_key(),
- 'email' => urlencode( $download->get_user_email() ),
- 'key' => $download->get_download_id(),
- ), trailingslashit( home_url() )
- );
+ $download_link = add_query_arg(
+ array(
+ 'download_file' => $download->get_product_id(),
+ 'order' => $download->get_order_key(),
+ 'email' => urlencode( $download->get_user_email() ),
+ 'key' => $download->get_download_id(),
+ ), trailingslashit( home_url() )
+ );
?>
|
get_id() ),
- admin_url( 'admin.php?page=wc-reports&tab=orders&report=downloads' )
- );
- echo '';
- esc_html_e( 'View report', 'woocommerce' );
- echo '';
+ $report_url = add_query_arg(
+ 'permission_id',
+ rawurlencode( $download->get_id() ),
+ admin_url( 'admin.php?page=wc-reports&tab=orders&report=downloads' )
+ );
+ echo '';
+ esc_html_e( 'View report', 'woocommerce' );
+ echo '';
?>
|
diff --git a/includes/admin/meta-boxes/views/html-product-data-advanced.php b/includes/admin/meta-boxes/views/html-product-data-advanced.php
index cde5ff9dd03..e17130aa963 100644
--- a/includes/admin/meta-boxes/views/html-product-data-advanced.php
+++ b/includes/admin/meta-boxes/views/html-product-data-advanced.php
@@ -7,33 +7,33 @@ if ( ! defined( 'ABSPATH' ) ) {
'_purchase_note',
- 'value' => $product_object->get_purchase_note( 'edit' ),
- 'label' => __( 'Purchase note', 'woocommerce' ),
- 'desc_tip' => true,
- 'description' => __( 'Enter an optional note to send the customer after purchase.', 'woocommerce' ),
- )
- );
+ woocommerce_wp_textarea_input(
+ array(
+ 'id' => '_purchase_note',
+ 'value' => $product_object->get_purchase_note( 'edit' ),
+ 'label' => __( 'Purchase note', 'woocommerce' ),
+ 'desc_tip' => true,
+ 'description' => __( 'Enter an optional note to send the customer after purchase.', 'woocommerce' ),
+ )
+ );
?>
'menu_order',
- 'value' => $product_object->get_menu_order( 'edit' ),
- 'label' => __( 'Menu order', 'woocommerce' ),
- 'desc_tip' => true,
- 'description' => __( 'Custom ordering position.', 'woocommerce' ),
- 'type' => 'number',
- 'custom_attributes' => array(
- 'step' => '1',
- ),
- )
- );
+ woocommerce_wp_text_input(
+ array(
+ 'id' => 'menu_order',
+ 'value' => $product_object->get_menu_order( 'edit' ),
+ 'label' => __( 'Menu order', 'woocommerce' ),
+ 'desc_tip' => true,
+ 'description' => __( 'Custom ordering position.', 'woocommerce' ),
+ 'type' => 'number',
+ 'custom_attributes' => array(
+ 'step' => '1',
+ ),
+ )
+ );
?>
diff --git a/includes/admin/reports/class-wc-report-coupon-usage.php b/includes/admin/reports/class-wc-report-coupon-usage.php
index eca8540b8e5..c04be027c7f 100644
--- a/includes/admin/reports/class-wc-report-coupon-usage.php
+++ b/includes/admin/reports/class-wc-report-coupon-usage.php
@@ -205,7 +205,7 @@ class WC_Report_Coupon_Usage extends WC_Admin_Report {
);
if ( ! empty( $used_coupons ) && is_array( $used_coupons ) ) :
- ?>
+ ?>