Plugin Directory: Add wp-env local development environment#555
Draft
dd32 wants to merge 2 commits intoWordPress:trunkfrom
Draft
Plugin Directory: Add wp-env local development environment#555dd32 wants to merge 2 commits intoWordPress:trunkfrom
dd32 wants to merge 2 commits intoWordPress:trunkfrom
Conversation
341fdfd to
1b81fe3
Compare
Adds a wp-env configuration for running the plugin directory locally, with mocks for production-only services and a lifecycle script that seeds plugin data from the WordPress.org API after first start. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ments. - Gate Jetpack Search class instantiation behind class_exists checks - Only rewrite asset URLs to CDN when wp_get_environment_type() is production - Fix get_site() fatal on non-multisite in locale banner route - Fix PHP 8.2 dynamic property deprecation on WP_List_Table subclass - Fix false-to-array deprecation in get_plugin_banner() fallback - Fix undefined HTTP_HOST/REQUEST_URI warnings in CLI context Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1b81fe3 to
efc2a91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wp-envconfiguration for running the plugin directory locally with DockerEnvironment setup
On first page load, ~20 plugins are imported automatically from wordpress.org.
Code fixes
class_existscheckswp_get_environment_type()isproductionget_site()fatal on non-multisite in locale banner routeWP_List_Tablesubclassfalse-to-array deprecation inget_plugin_banner()fallbackHTTP_HOST/REQUEST_URIwarnings in CLI contextTest plan
npx wp-env startfromenvironments/plugin-directory/🤖 Generated with Claude Code