Skip to content

Commit

Permalink
Fix a double require bug in the wp-docs-plugin plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Apr 29, 2024
1 parent 5d41adb commit eaa8cfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions wp-content/blueprint-wp-now.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"landingPage": "/wp-admin/edit.php?post_type=page",
"preferredVersions": {
"wp": "latest",
"php": "7.4"
"php": "8.0"
},
"login": false,
"login": true,
"steps": [
{
"step": "installTheme",
Expand Down Expand Up @@ -42,14 +42,7 @@
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "simply-static"
},
"options": {
"activate": false
}
},
{
"step": "activatePlugin",
"pluginPath": "simply-static/simply-static.php"
}
},
{
"step": "activatePlugin",
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/wp-docs-plugin/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function initialize_docs_plugin() {
switch_theme('playground-docs');
// Activate the gutenberg plugin and the create-block-theme plugin
// for the same reasons.
require ABSPATH . 'wp-admin/includes/plugin.php';
require_once ABSPATH . 'wp-admin/includes/plugin.php';
activate_plugin('gutenberg/gutenberg.php');
activate_plugin('create-block-theme/create-block-theme.php');
pages_reinitialize_content();
Expand Down

0 comments on commit eaa8cfb

Please sign in to comment.