Fixed api keys migration for 2.4, closes #8746

This commit is contained in:
Claudio Sanches 2015-08-07 15:15:34 -03:00
parent 6bf6a5df3f
commit e9acb4f7cf
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ foreach ( $api_users as $_user ) {
$user = get_userdata( $_user->user_id );
$apps_keys[] = array(
'user_id' => $user->ID,
'permission' => $user->woocommerce_api_key_permissions,
'permissions' => $user->woocommerce_api_key_permissions,
'consumer_key' => wc_api_hash( $user->woocommerce_api_consumer_key ),
'consumer_secret' => $user->woocommerce_api_consumer_secret,
'truncated_key' => substr( $user->woocommerce_api_consumer_secret, -7 )