phpcs sniff fixes for wc-order-functions.php
This commit is contained in:
parent
ab6012fa3f
commit
d826aba858
|
@ -294,7 +294,6 @@ function wc_register_order_type( $type, $args = array() ) {
|
|||
/**
|
||||
* Return the count of processing orders.
|
||||
*
|
||||
* @access public
|
||||
* @return int
|
||||
*/
|
||||
function wc_processing_order_count() {
|
||||
|
@ -907,13 +906,15 @@ function wc_get_order_note( $data ) {
|
|||
}
|
||||
|
||||
return (object) apply_filters(
|
||||
'woocommerce_get_order_note', array(
|
||||
'woocommerce_get_order_note',
|
||||
array(
|
||||
'id' => (int) $data->comment_ID,
|
||||
'date_created' => wc_string_to_datetime( $data->comment_date ),
|
||||
'content' => $data->comment_content,
|
||||
'customer_note' => (bool) get_comment_meta( $data->comment_ID, 'is_customer_note', true ),
|
||||
'added_by' => __( 'WooCommerce', 'woocommerce' ) === $data->comment_author ? 'system' : $data->comment_author,
|
||||
), $data
|
||||
),
|
||||
$data
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue