PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.5
YayMail – WooCommerce Email Customizer v4.4.5
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
← All changes | src/Controllers/AddonController.php +4 -1 4.4.2 → 4.4.5 View file →
@@ -89,9 +89,12 @@
89 89 * @param array<string, array<string, mixed>> $data Addon rows keyed by namespace.
90 90 * @return array<string, array<string, mixed>>
91 91 */
92 92 private function filter_addons_by_platform( array $data, string $platform ): array {
93 - $is_yaymail = ( $platform === 'yaymail' ) ? true : false;
93 + // Unknown/absent platform falls through to the WordPress catalog, matching
94 + // the prior exact-match behavior ( $platform === 'yaymail' ).
95 + $platform_obj = '' !== $platform ? \YayMail\Platform\PlatformRegistry::get( $platform ) : null;
96 + $is_yaymail = $platform_obj ? $platform_obj->is_woo_product() : false;
94 97
95 98 return array_filter(
96 99 $data,
97 100 function ( $addon ) use ( $is_yaymail ) {