From 8e90305e5227c24b1770c3ebef844084414e2c2d Mon Sep 17 00:00:00 2001 From: guido Date: Fri, 27 Oct 2023 11:52:08 +0200 Subject: [PATCH] Remove fix plugin url It is not necessary --- src/Provider/ServiceIntegration.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Provider/ServiceIntegration.php b/src/Provider/ServiceIntegration.php index 9cdf8bb..dc15246 100644 --- a/src/Provider/ServiceIntegration.php +++ b/src/Provider/ServiceIntegration.php @@ -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; @@ -57,7 +52,6 @@ public function boot(App\Container $c): bool return false; } - $this->fixPluginsUrl(); $this->addBodyClasses(); $this->activeGutenbergVersionThemeRowFilter(); $this->activeGutenbergVersionAtAGlanceInfo(); @@ -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 (