Increase order key length to 22 to support 2.6

Fixes #13850
This commit is contained in:
Mike Jolley 2017-03-31 12:29:19 +01:00
parent 1cd85b1b9b
commit 58040c94ae
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 ) );
}
/**