v4 - load theme from arbitrary paths #727
Merged
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.
This PR continues the work done to support loading plugins from arbitrary absolute and relative paths to extend the same support to themes.
The
WPLoader
module will now allow specifying the theme to load in thetheme
parameter as:twentytwentythree
vendor/acme/some-theme
/home/themes/some-theme
Furthermore, the PR extends the same suport to parent and child themes allowing the
theme
configuration parameter to be an array:Relative paths include the
.
to indicate the current working directory:This is the second step of the work required to support really standalone development of themes and plugins without requiring specific directorye positioning.
The next step will be updating the setup procedure to avoid symbolically linking themes or plugins in place in the WordPress installation directory.