From e9acb4f7cfe56154fe796333bb7facf4cb479e0a Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 7 Aug 2015 15:15:34 -0300 Subject: [PATCH] Fixed api keys migration for 2.4, closes #8746 --- includes/updates/woocommerce-update-2.4.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/updates/woocommerce-update-2.4.php b/includes/updates/woocommerce-update-2.4.php index 965f2a1ebda..5fa30e54b8b 100644 --- a/includes/updates/woocommerce-update-2.4.php +++ b/includes/updates/woocommerce-update-2.4.php @@ -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 )