Skip to content

Commit

Permalink
Remove fix plugin url
Browse files Browse the repository at this point in the history
It is not necessary
  • Loading branch information
widoz committed Oct 27, 2023
1 parent 6a45a79 commit 8e90305
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Provider/ServiceIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@

class ServiceIntegration extends App\Provider\EarlyBootedOnly
{
private const RELATIVE_VERSIONS_PATH = '/inpsyde/gutenberg-mirror';

// phpcs:ignore Inpsyde.CodeQuality.LineLength.TooLong
private const URL_FIXER_PREG_PATTERN = '~^(https?://.+?/wp-content).+?(client-mu-plugins/vendor' . self::RELATIVE_VERSIONS_PATH . '/[0-9\.-]+.+?)~';

private Service\VersionActivator $versionActivator;

private Service\Notice $notice;
Expand Down Expand Up @@ -57,7 +52,6 @@ public function boot(App\Container $c): bool
return false;
}

$this->fixPluginsUrl();
$this->addBodyClasses();
$this->activeGutenbergVersionThemeRowFilter();
$this->activeGutenbergVersionAtAGlanceInfo();
Expand All @@ -83,14 +77,6 @@ private function activateGutenbergVersion(): bool
return true;
}

private function fixPluginsUrl(): void
{
\add_filter(
'plugins_url',
static fn (string $url) => \preg_replace(self::URL_FIXER_PREG_PATTERN, '$1/$2', $url),
);
}

private function addBodyClasses(): void
{
$callback = fn (
Expand Down

0 comments on commit 8e90305

Please sign in to comment.