Skip to content

Commit

Permalink
Add tests/wptt-mu-plugin.php support
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed May 11, 2020
1 parent 3fdce56 commit 54944c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/wp-install
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,16 @@ install_wp() {

wp rewrite structure '/%postname%/'

mkdir -p "$wp_core_dir/wp-content/mu-plugins"
cat > "$wp_core_dir/wp-content/mu-plugins/wptt.php" << PHP
<?php
if (is_readable(__DIR__ . '/../../../../tests/wptt-mu-plugin.php')) {
require_once __DIR__ . '/../../../../tests/wptt-mu-plugin.php';
}
PHP


cd wp-content/plugins

# activate all plugins
Expand Down

0 comments on commit 54944c3

Please sign in to comment.