Skip to content

Add mu-plugins to .gitignore (for .wp-env.override.json mapping)#1156

Merged
mauteri merged 1 commit intoGatherPress:developfrom
JordanPak:feature/gitignore-mu-plugins
Aug 9, 2025
Merged

Add mu-plugins to .gitignore (for .wp-env.override.json mapping)#1156
mauteri merged 1 commit intoGatherPress:developfrom
JordanPak:feature/gitignore-mu-plugins

Conversation

@JordanPak
Copy link
Copy Markdown
Contributor

Description of the Change

Adds root mu-plugins to the gitignore so contributors can conveniently map some local mu-plugins.

How to test the Change

  1. Create a .wp-env.override.json with
{
	"$schema": "https://schemas.wp.org/trunk/wp-env.json",
	"mappings": {
		"wp-content/mu-plugins": "./mu-plugins"
	}
}
  1. Make a mu-plugins directory in the root and throw a drop-in plugin in there.
  2. The plugin should load after restarting the WordPress environment, and it won't be tracked in the repo.

Changelog Entry

Changed - Add mu-plugins/ to .gitignore for mappings in potential .wp-env.override.json

Credits

@JordanPak

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Aug 9, 2025

PR Summary

  • Addition of mu-plugins/ to the .gitignore file
    This change ensures that the mu-plugins/ directory is ignored, which means any changes to files within this directory will not be tracked or recorded by git. This makes the developer workspace cleaner and helps focus on the relevant changes.

@JordanPak JordanPak marked this pull request as ready for review August 9, 2025 21:18
@mauteri mauteri merged commit b37c668 into GatherPress:develop Aug 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants