Skip to content

Commit

Permalink
Added roots/bedrock-autoloader (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Jun 9, 2020
1 parent 8b228da commit 21c836b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -226,6 +226,15 @@ npm run build

## Upgrade Guide

<details>
<summary><strong>Upgrading from 8 to 9</strong></summary>

1. Bump the version number in the `composer.json` file to `^9.0`.

1. Copy the `public/mu-plugins/mu-plugins.php` file into your project.

1. Run `composer update` in the root of your project and your app should be up and running!
</details>
<details>
<summary><strong>Upgrading from 7 to 8</strong></summary>

Expand Down Expand Up @@ -407,7 +416,8 @@ If you or a company you work for use WordPlate, please consider buying a copy of
WordPlate wouldn't be possible without these amazing open-source projects.

- [`composer/installers`](https://github.com/composer/installers)
- [`johnpbloch/wordpress`](https://github.com/johnpbloch/wordpress)
- [`johnpbloch/wordpress-core`](https://github.com/johnpbloch/wordpress-core)
- [`johnpbloch/wordpress-core-installer`](https://github.com/johnpbloch/wordpress-core-installer)
- [`laravel-mix`](https://github.com/JeffreyWay/laravel-mix)
- [`roots/bedrock-autoloader`](https://github.com/roots/bedrock-autoloader)
- [`roots/wp-password-bcrypt`](https://github.com/roots/wp-password-bcrypt)
Expand Down
3 changes: 2 additions & 1 deletion public/.gitignore
@@ -1,5 +1,6 @@
languages
mu-plugins
mu-plugins/*
!mu-plugins/mu-plugins.php
plugins/*
!plugins/index.php
upgrade
Expand Down
15 changes: 15 additions & 0 deletions public/mu-plugins/mu-plugins.php
@@ -0,0 +1,15 @@
<?php

/**
* Plugin Name: Must Use Plugins
* Plugin URI: https://github.com/roots/bedrock-autoloader
* Description: Must-use plugins (a.k.a. mu-plugins) are plugins installed in a special directory inside the content folder and which are automatically enabled on all sites in the installation.
* Version: 1.0.0
* Author: Roots
* Author URI: https://roots.io/
* License: MIT
*/

if (is_blog_installed()) {
new Roots\Bedrock\Autoloader();
}

0 comments on commit 21c836b

Please sign in to comment.