Skip to content

Commit

Permalink
Install wporg-mu-plugins from Composer
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed May 10, 2023
1 parent a05ea9d commit 5a36207
Show file tree
Hide file tree
Showing 3 changed files with 337 additions and 132 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ WordPress.org-specific customizations for the Two Factor plugin
return in_array( $user->user_login, $GLOBALS['supes'], true );
}
```
1. `git clone https://github.com/WordPress/wporg-mu-plugins.git --branch build wp-content/mu-plugins/pub`
1. Add this code to your `wp-content/mu-plugins/0-sandbox.php`:
```php
require_once WPMU_PLUGIN_DIR. '/wporg-mu-plugins/mu-plugins/loader.php';
Expand Down
19 changes: 16 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,29 @@
"php": "7.4"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
}
},
"require": {},
"extra": {
"installer-paths": {
"../../mu-plugins/pub": [ "wporg/wporg-mu-plugins" ]
}
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:WordPress/wporg-mu-plugins.git"
}
],
"require-dev" : {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"wp-coding-standards/wpcs": "2.3.*",
"wporg/wporg-mu-plugins": "dev-build",
"phpunit/phpunit": "^9.5",
"spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^1.0"
"yoast/phpunit-polyfills": "^1.0",
"composer/installers": "^2.2"
},
"scripts": {
"lint": "phpcs --extensions=php -s -p",
Expand Down
Loading

0 comments on commit 5a36207

Please sign in to comment.