Inline doc and keep status updated. Closes #1928.

This commit is contained in:
Mike Jolley 2012-12-06 14:48:50 +00:00
parent 1542ebb7f5
commit f100f6ebcb
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class WC_Order {
/** @var int Order (post) ID */
var $id;
/** @var string Coupon code. */
/** @var string Order status. */
var $status;
/** @var string Order date (placed). */
@ -1198,6 +1198,7 @@ class WC_Order {
if ( $new_status->slug == 'cancelled' )
$this->decrease_coupon_usage_counts();
$this->status = $new_status->slug;
}
}