Fixed coding standards
This commit is contained in:
parent
a9b36a4e23
commit
2bcd4598f8
|
@ -1330,7 +1330,7 @@ class WC_REST_Products_Controller extends WC_REST_Products_V2_Controller {
|
|||
$data = parent::get_product_data( $product, $context );
|
||||
|
||||
// Replace in_stock with stock_status.
|
||||
$pos = array_search( 'in_stock', array_keys( $data ) );
|
||||
$pos = array_search( 'in_stock', array_keys( $data ), true );
|
||||
$array_section_1 = array_slice( $data, 0, $pos, true );
|
||||
$array_section_2 = array_slice( $data, $pos + 1, null, true );
|
||||
|
||||
|
|
Loading…
Reference in New Issue