Draft
Conversation
Adds a wp-env based local environment for the Theme Directory, following the same pattern as the Plugin Directory environment. Environment setup: - Theme directory plugin from this repository - wporg-themes-2024 theme and wporg-ratings plugin from WordPress/wporg-theme-directory - wporg-parent-2021 theme - Shared mu-plugin mocks (query filter, dev login, mu-plugins loader) - Stub tables for bb_themes_stats and ratings On first start: - Creates pages (commercial, getting-started, upload) - Creates business model taxonomy terms - Imports ~45 themes from WordPress.org API (popular, new, updated) Usage: cd environments && npm install npm run themes:env start Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wp-env does not support subdirectory references within GitHub repos. Map the wporg-theme-directory repo and symlink the theme in after-start. Add a stub wporg-ratings mu-plugin for local development. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The _screenshot post meta is expected to be a version-keyed array (e.g. ['1.4' => 'screenshot.png']), not a plain URL string. This was causing a fatal on browse pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Storing all historical versions caused latest_version() to return the oldest version (via array_search on a sorted array), which had no matching screenshot entry, producing warnings on browse pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…d of symlinks. Use the build branch of WordPress/wporg-theme-directory which includes compiled assets, fixing the block namespace notice. Replace symlinks with a mu-plugin that calls register_theme_directory() for cleaner theme discovery. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
No description provided.