Merge pull request #13854 from woocommerce/fix-13850

Increase order key length to 22 to support 2.6
This commit is contained in:
Mike Jolley 2017-03-31 15:51:17 +01:00 committed by GitHub
commit 244bc1f733
1 changed files with 2 additions and 2 deletions

View File

@ -846,11 +846,11 @@ class WC_Order extends WC_Abstract_Order {
/**
* Set order_key.
*
* @param string $value Max length 20 chars.
* @param string $value Max length 22 chars.
* @throws WC_Data_Exception
*/
public function set_order_key( $value ) {
$this->set_prop( 'order_key', substr( $value, 0, 20 ) );
$this->set_prop( 'order_key', substr( $value, 0, 22 ) );
}
/**