diff --git a/projects/packages/my-jetpack/changelog/fix-get-products-by-ownership-return b/projects/packages/my-jetpack/changelog/fix-get-products-by-ownership-return new file mode 100644 index 0000000000000..3d50539799451 --- /dev/null +++ b/projects/packages/my-jetpack/changelog/fix-get-products-by-ownership-return @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: This change is not visible to the end user. + + diff --git a/projects/packages/my-jetpack/src/class-products.php b/projects/packages/my-jetpack/src/class-products.php index 34adf33cac100..dcd3fcc28b3cd 100644 --- a/projects/packages/my-jetpack/src/class-products.php +++ b/projects/packages/my-jetpack/src/class-products.php @@ -212,7 +212,9 @@ public static function get_products_by_ownership( $type ) { ) ) ), - 'unowned' => array_unique( $unowned_products ), + 'unowned' => array_values( + array_unique( $unowned_products ) + ), ); return $data[ $type ];