woocommerce/includes/abstracts
Claudio Sanches d931405156 Fixed the type returned when get_stock_quantity() is empty
Since expect return an integer value, we can't return an empty string.
This can generate some kinds of errors like:

 '' >= 1 returns false
 '' >= -1 returns true

This can be a problem comparing stock quantity like we do in
WC_Product::has_enough_stock()

But using null we have:

 null >= 1 returns false
 null >= -1 returns false

cc @mikejolley

ref #9598
2015-11-14 15:53:36 -02:00
..
abstract-wc-integration.php Tweak the dockblocks and periodic-ending fix 2015-11-04 00:05:08 +05:45
abstract-wc-order.php Cache get_item_meta_array for better performance 2015-11-05 15:21:28 +00:00
abstract-wc-payment-gateway.php Tweak the dockblocks and periodic-ending fix 2015-11-04 00:05:08 +05:45
abstract-wc-product.php Fixed the type returned when get_stock_quantity() is empty 2015-11-14 15:53:36 -02:00
abstract-wc-session.php Removed period for file headers 2015-11-03 11:53:50 -02:00
abstract-wc-settings-api.php Remove unused variable declaration 2015-11-10 16:53:45 +05:45
abstract-wc-shipping-method.php Fixed some coding standards for docblocks 2015-11-03 10:28:01 -02:00
abstract-wc-widget.php Removed period for file headers 2015-11-03 11:53:50 -02:00