From 5d025dd6ad65e25487aef3c30fccc1bda7fb6d28 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Fri, 30 Aug 2024 22:30:16 +0100 Subject: [PATCH] Update package for roots/wordpress The post-install hook detects whether we're trying to install the wordpress core package by doing literal string matching against the composer package name. The old johnpblock/wordpress has been deprecated as of 2024. --- src/Wplang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Wplang.php b/src/Wplang.php index b376b4d..3929844 100644 --- a/src/Wplang.php +++ b/src/Wplang.php @@ -115,7 +115,7 @@ class Wplang implements PluginInterface, EventSubscriberInterface { $t = new Translatable( 'theme', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir ); break; case 'package': - if ( 'johnpbloch' === $provider && 'wordpress' === $name ) { + if ( 'roots' === $provider && 'wordpress-full' === $name ) { $t = new Translatable( 'core', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir ); } break; -- GitLab