-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/* | ||
* Plugin Name: Gutenberg Versions Manager Mu Plugin | ||
* Description: A Mu Plugin to test the functionality of the Gutenberg Versions Manager. | ||
* Author: Inpsyde | ||
* Version: 1.0.0.0 | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Inpsyde\GutenbergVersionManager; | ||
|
||
$autoloader = WP_CONTENT_DIR . '/mu-plugins/gutenberg-versions-manager/vendor/autoload.php'; | ||
|
||
if (\file_exists($autoloader)) { | ||
require_once $autoloader; | ||
} | ||
if (!\class_exists('Inpsyde\\App\\App')) { | ||
return; | ||
} | ||
|
||
$app = \Inpsyde\App\App::new()->addPackage( | ||
\Inpsyde\GutenbergVersionManager\Package::new() | ||
); | ||
|
||
\add_action('muplugins_loaded', static fn () => $app->boot()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
'versions' => [ | ||
'16.8.0', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
declare(strict_types=1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
* Theme Name: Gutenberg Versions Manager | ||
* Theme Version: 1.0.0.0 | ||
*/ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
/node_modules/ | ||
/.psalm | ||
/.idea | ||
/.development | ||
|
||
/auth.json | ||
/.phpunit.result.cache | ||
|