Skip to content
Snippets Groups Projects
Commit 5d025dd6 authored by ale's avatar ale
Browse files

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.
parent 30e147e6
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ class Wplang implements PluginInterface, EventSubscriberInterface { ...@@ -115,7 +115,7 @@ class Wplang implements PluginInterface, EventSubscriberInterface {
$t = new Translatable( 'theme', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir ); $t = new Translatable( 'theme', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir );
break; break;
case 'package': case 'package':
if ( 'johnpbloch' === $provider && 'wordpress' === $name ) { if ( 'roots' === $provider && 'wordpress-full' === $name ) {
$t = new Translatable( 'core', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir ); $t = new Translatable( 'core', $name, $package->getVersion(), $this->languages, $this->wpLanguageDir );
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment