Fix PHPCS
This commit is contained in:
parent
ca8049dd52
commit
51d9d4ab13
|
@ -306,7 +306,7 @@ class WC_Report_Customer_List extends WP_List_Table {
|
|||
'exclude' => array_merge( $admin_users->get_results(), $manager_users->get_results() ),
|
||||
'number' => $per_page,
|
||||
'offset' => ( $current_page - 1 ) * $per_page,
|
||||
)
|
||||
),
|
||||
),
|
||||
'9.5.0',
|
||||
null,
|
||||
|
|
|
@ -53,7 +53,7 @@ class WC_Report_Low_In_Stock extends WC_Report_Stock {
|
|||
",
|
||||
$stock,
|
||||
$nostock
|
||||
)
|
||||
),
|
||||
),
|
||||
'9.5.0',
|
||||
null,
|
||||
|
|
|
@ -43,7 +43,7 @@ class WC_Report_Most_Stocked extends WC_Report_Stock {
|
|||
AND lookup.stock_quantity > %d
|
||||
",
|
||||
$stock
|
||||
)
|
||||
),
|
||||
),
|
||||
'9.5.0',
|
||||
null,
|
||||
|
|
|
@ -50,7 +50,7 @@ class WC_Report_Out_Of_Stock extends WC_Report_Stock {
|
|||
AND lookup.stock_quantity <= %d
|
||||
",
|
||||
$stock
|
||||
)
|
||||
),
|
||||
),
|
||||
'9.5.0',
|
||||
null,
|
||||
|
|
|
@ -68,7 +68,7 @@ class WC_Report_Sales_By_Category extends WC_Admin_Report {
|
|||
return array_unique(
|
||||
apply_filters_deprecated(
|
||||
'woocommerce_report_sales_by_category_get_products_in_category',
|
||||
array( $product_ids, $category_id ) ,
|
||||
array( $product_ids, $category_id ),
|
||||
'9.5.0',
|
||||
null,
|
||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||
|
|
|
@ -150,7 +150,7 @@ class WC_Report_Stock extends WP_List_Table {
|
|||
'9.5.0',
|
||||
null,
|
||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||
);
|
||||
);
|
||||
|
||||
foreach ( $actions as $action ) {
|
||||
printf(
|
||||
|
|
|
@ -208,26 +208,31 @@ class WC_Report_Taxes_By_Code extends WC_Admin_Report {
|
|||
$rate = $wpdb->get_var( $wpdb->prepare( "SELECT tax_rate FROM {$wpdb->prefix}woocommerce_tax_rates WHERE tax_rate_id = %d;", $rate_id ) );
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php
|
||||
echo wp_kses_post(
|
||||
apply_filters_deprecated(
|
||||
'woocommerce_reports_taxes_tax_rate',
|
||||
array( $tax_row->tax_rate, $rate_id, $tax_row ),
|
||||
'9.5.0',
|
||||
null,
|
||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||
)
|
||||
); ?></th>
|
||||
<td><?php
|
||||
echo wp_kses_post(
|
||||
apply_filters_deprecated(
|
||||
'woocommerce_reports_taxes_rate',
|
||||
array( $rate, $rate_id, $tax_row ),
|
||||
'9.5.0',
|
||||
null,
|
||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||
)
|
||||
); ?>%</td>
|
||||
<th scope="row">
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
apply_filters_deprecated(
|
||||
'woocommerce_reports_taxes_tax_rate',
|
||||
array( $tax_row->tax_rate, $rate_id, $tax_row ),
|
||||
'9.5.0',
|
||||
null,
|
||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
apply_filters_deprecated(
|
||||
'woocommerce_reports_taxes_rate',
|
||||
array( $rate, $rate_id, $tax_row ),
|
||||
'9.5.0',
|
||||
null,
|
||||
'Reports are deprecated and will be removed in future versions. Use Analytics instead.',
|
||||
)
|
||||
);
|
||||
// phpcs:ignore?>%</td>
|
||||
<td class="total_row"><?php echo esc_html( $tax_row->total_orders ); ?></td>
|
||||
<td class="total_row"><?php echo wc_price( $tax_row->tax_amount ); // phpcs:ignore ?></td>
|
||||
<td class="total_row"><?php echo wc_price( $tax_row->shipping_tax_amount ); // phpcs:ignore ?></td>
|
||||
|
|
Loading…
Reference in New Issue