wporg-mu-plugins
wporg-mu-plugins copied to clipboard
Development of the Global Header and other mu-plugins used on WordPress.org.
wporg-mu-plugins
Over time, this is intended to become the canonical source repository for all mu-plugins on the WordPress.org network. At the moment, it only includes a few.
Usage
- Add entries to the
repositoriesandrequire-devsections ofcomposer.json. See wporg-news-2021 composer.json as an example. - Run
composer updateto install it require_oncethe files that you want. e.g.,require_once WPMU_PLUGIN_DIR . '/wporg-mu-plugins/mu-plugins/blocks/global-header-footer/blocks.php';- See individual plugin readmes for specific instructions
Development
npm run startduring development, only buildsstyle.cssnpm run buildbefore commit/sync/deploy, buildsstyle.cssandstyle-rtl.css.npm run build:rtlto buildstyle-rtl.css
Sync/Deploy
The built here are synced to dotorg.svn so they can be deployed. The aren't synced to meta.svn, since they're already open.
The other mu-plugins in meta.svn are not synced here. Over time, they can be removed from meta.svn and added here.
To sync these to dotorg.svn, run bin/sync/wporg-mu-plugins.sh on a w.org sandbox. Once they're committed, you can deploy like normal.