Feature/rebuild Demo Script#10
Merged
Merged
Conversation
Moves rebuild-demo.php from the Elayne theme into pt-cli so it is never deployed to a production web server. Run via: wp eval-file vendor/imagewize/pt-cli/scripts/rebuild-demo.php
- Add rebuild-demo.php script for rebuilding demo pages from pattern PHP files - Supports single-site and multisite configurations - Supports mapping page IDs to multiple pattern files - Optional push of custom .html templates and template parts to WP database - Includes dry-run mode via WP_REBUILD_DRY_RUN environment variable - Generic implementation works with any FSE block theme - Bump version to 2.4.0 - Update CHANGELOG.md and README.md with documentation
…ipt.md - Extract detailed demo rebuild script docs to separate file - Add docs/index.php with silence is golden to prevent directory browsing - Update README.md with link to new documentation Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
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.
This PR introduces a new WP-CLI script for demo page rebuilding and reorganizes project documentation for version 2.4.0, along with security enhancements for the scripts directory. The primary addition is
scripts/rebuild-demo.php, a WP-CLI eval-file script that automates demo content reconstruction, complemented by comprehensive documentation indocs/demo-rebuild-script.md. Documentation has been restructured with new index files for bothdocs/andscripts/directories, while the CHANGELOG and README have been updated to reflect these changes. A security hardening measure implements "silence is golden" behavior in the scripts directory.New Demo Rebuild Functionality:
scripts/rebuild-demo.phpas a WP-CLI eval-file script for automated demo page rebuildingdocs/demo-rebuild-script.mdwith complete usage documentation and technical specifications for the new scriptDocumentation and Developer Guidance:
CHANGELOG.mdfor v2.4.0 release with documentation reorganization detailsdocs/index.phpandscripts/index.phpas directory index files for improved navigationREADME.mdto reference the new documentation structure and demo rebuild capabilitiesSecurity Enhancements:
Files Changed:
CHANGELOG.md(Modified)README.md(Modified)bin/pt-cli(Modified)docs/demo-rebuild-script.md(Added)docs/index.php(Added)scripts/index.php(Added)scripts/rebuild-demo.php(Added)