Suspicious function flagged in class-wc-report-sales-by-product.php
-
Hi, our plugin Defender Pro flagged a suspicious function in /includes/admin/reports/class-wc-report-sales-by-product.php, pasted below.
We are using WooCommerce v3.8.1.
Just want to verify if this code is correct, and not different from the original ?
Thanks
Chris
=======
public function __construct() {
// @codingStandardsIgnoreStart
if ( isset( $_GET[‘product_ids’] ) && is_array( $_GET[‘product_ids’] ) ) {
$this->product_ids = array_filter( array_map( ‘absint’, $_GET[‘product_ids’] ) );
} elseif ( isset( $_GET[‘product_ids’] ) ) {
$this->product_ids = array_filter( array( absint( $_GET[‘product_ids’] ) ) );
}The page I need help with: [log in to see the link]
- The topic ‘Suspicious function flagged in class-wc-report-sales-by-product.php’ is closed to new replies.