From 06f6bedf0a8aa7726ef13bc2a94061745151fa40 Mon Sep 17 00:00:00 2001 From: Ian Jenkins Date: Thu, 27 Aug 2020 14:02:23 +0100 Subject: [PATCH] Fix issue with using __DIR__ Composer does a rudimentary search and replace on __DIR__ so even if a string will get replaced. This breaks it up as per https://github.com/lkwdwrd/wp-muplugin-loader/pull/12 to stop this happening. --- src/lkwdwrd/Composer/MULoaderPlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lkwdwrd/Composer/MULoaderPlugin.php b/src/lkwdwrd/Composer/MULoaderPlugin.php index 33b1805..18c2d4d 100644 --- a/src/lkwdwrd/Composer/MULoaderPlugin.php +++ b/src/lkwdwrd/Composer/MULoaderPlugin.php @@ -167,7 +167,8 @@ public function dumpRequireFile(): void { if ( $muRequireFile !== false ) { file_put_contents( $muPath . $muRequireFile, - "