includes/admin/reports/class-wc-report-coupon-usage.php 1 location
|
@@ 34-40 (lines=7) @@
|
| 31 |
|
/** |
| 32 |
|
* Constructor. |
| 33 |
|
*/ |
| 34 |
|
public function __construct() { |
| 35 |
|
if ( isset( $_GET['coupon_codes'] ) && is_array( $_GET['coupon_codes'] ) ) { |
| 36 |
|
$this->coupon_codes = array_filter( array_map( 'sanitize_text_field', $_GET['coupon_codes'] ) ); |
| 37 |
|
} elseif ( isset( $_GET['coupon_codes'] ) ) { |
| 38 |
|
$this->coupon_codes = array_filter( array( sanitize_text_field( $_GET['coupon_codes'] ) ) ); |
| 39 |
|
} |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
/** |
| 43 |
|
* Get the legend for the main chart sidebar. |
includes/admin/reports/class-wc-report-sales-by-product.php 1 location
|
@@ 41-47 (lines=7) @@
|
| 38 |
|
/** |
| 39 |
|
* Constructor. |
| 40 |
|
*/ |
| 41 |
|
public function __construct() { |
| 42 |
|
if ( isset( $_GET['product_ids'] ) && is_array( $_GET['product_ids'] ) ) { |
| 43 |
|
$this->product_ids = array_filter( array_map( 'absint', $_GET['product_ids'] ) ); |
| 44 |
|
} elseif ( isset( $_GET['product_ids'] ) ) { |
| 45 |
|
$this->product_ids = array_filter( array( absint( $_GET['product_ids'] ) ) ); |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
/** |
| 50 |
|
* Get the legend for the main chart sidebar. |