diff --git a/plugins/woocommerce-admin/readme.txt b/plugins/woocommerce-admin/readme.txt index 1e1c1c132f5..dbb0d257f6b 100644 --- a/plugins/woocommerce-admin/readme.txt +++ b/plugins/woocommerce-admin/readme.txt @@ -74,6 +74,7 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt == Changelog == == Unreleased == +- Fix: Transformer casing is incorrect and creates an error on case-sensitive systems #7104 - Dev: Reduce the specificity and complexity of the ReportError component #6846 - Add: Create onboarding package to house refactored WCPay card and relevant components #7058 - Fix: Preventing redundant notices when installing plugins via payments task list. #7026 diff --git a/plugins/woocommerce-admin/src/RemoteInboxNotifications/TransformerService.php b/plugins/woocommerce-admin/src/RemoteInboxNotifications/TransformerService.php index 6ef605c8d4a..ea8394ec5e4 100644 --- a/plugins/woocommerce-admin/src/RemoteInboxNotifications/TransformerService.php +++ b/plugins/woocommerce-admin/src/RemoteInboxNotifications/TransformerService.php @@ -21,7 +21,7 @@ class TransformerService { * @return TransformerInterface|null */ public static function create_transformer( $name ) { - $camel_cased = lcfirst( str_replace( ' ', '', ucwords( str_replace( '_', ' ', $name ) ) ) ); + $camel_cased = str_replace( ' ', '', ucwords( str_replace( '_', ' ', $name ) ) ); $classname = __NAMESPACE__ . '\\Transformers\\' . $camel_cased; if ( ! class_exists( $classname ) ) {