{"id":14954854,"url":"https://github.com/wordpress/wporg-theme-directory","last_synced_at":"2025-10-19T07:30:59.540Z","repository":{"id":66223550,"uuid":"545174126","full_name":"WordPress/wporg-theme-directory","owner":"WordPress","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-28T17:14:42.000Z","size":1279,"stargazers_count":16,"open_issues_count":17,"forks_count":7,"subscribers_count":15,"default_branch":"trunk","last_synced_at":"2024-10-29T14:14:31.494Z","etag":null,"topics":["wordpress","wporg"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WordPress.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-03T23:04:37.000Z","updated_at":"2024-10-28T17:13:36.000Z","dependencies_parsed_at":"2024-05-20T20:56:59.056Z","dependency_job_id":"fb5f0332-04bd-4b63-91d7-ed876f3b5690","html_url":"https://github.com/WordPress/wporg-theme-directory","commit_stats":{"total_commits":159,"total_committers":7,"mean_commits":"22.714285714285715","dds":0.09433962264150941,"last_synced_commit":"f52089c06b6cdb60fc62e6f7d7a26fceca754025"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WordPress%2Fwporg-theme-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WordPress%2Fwporg-theme-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WordPress%2Fwporg-theme-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WordPress%2Fwporg-theme-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WordPress","download_url":"https://codeload.github.com/WordPress/wporg-theme-directory/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237088400,"owners_count":19253565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress","wporg"],"created_at":"2024-09-24T13:09:31.334Z","updated_at":"2025-10-19T07:30:59.487Z","avatar_url":"https://github.com/WordPress.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Theme Directory\n\nThe codebase and development environment for the WordPress.org Theme Directory.\n\nThis is as-yet incomplete, a starting point. Following this will get you partially set up, but you need a `ratings` database table to prevent fatal errors.\n\n## Development\n\n### Prerequisites\n\n* Docker\n* Node/npm\n* Yarn\n* Composer\n\n### Setup\n\n1. Set up repo dependencies.\n\n\t```bash\n\tyarn setup:tools\n\t```\n\n1. Add the theme-directory plugin, as this is not installed by composer.\n\n\t```bash\n\tcd source/wp-content/plugins/\n\tsvn checkout https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory\n\t```\n\n1. Start the local environment.\n\n\t```bash\n\tyarn wp-env start\n\t```\n\n1. Run the setup script.\n\n\t```bash\n\tyarn setup:wp\n\t```\n\n1. (optional) There may be times when you want to make changes to the Parent theme and test them with the Main them. To do that:\n\t1. Clone the Parent repo and follow the setup instructions in its `readme.md` file.\n\t1. Create a `.wp-env.override.json` file in this repo\n\t1. Copy the `themes` section from `.wp-env.json` and paste it into the override file. You must copy the entire section for it to work, because it won't be merged with `.wp-env.json`.\n\t1. Update the path to the Parent theme to the Parent theme folder inside the Parent repository you cloned above.\n\n\t```json\n\t{\n\t\t\"themes\": [\n\t\t\t\"./source/wp-content/themes/wporg\",\n\t\t\t\"./source/wp-content/themes/wporg-themes\",\n\t\t\t\"./source/wp-content/themes/wporg-themes-2024\"\n\t\t\t\"../wporg-parent-2021/source/wp-content/themes/wporg-parent-2021\"\n\t\t]\n\t}\n\t```\n\n1. Visit site at [localhost:8888](http://localhost:8888).\n\n1. Log in with username `admin` and password `password`.\n\n### Environment management\n\nThese must be run in the project's root folder, _not_ in theme/plugin subfolders.\n\n* Stop the environment.\n\n\t```bash\n\tyarn wp-env stop\n\t```\n\n* Restart the environment.\n\n\t```bash\n\tyarn wp-env start\n\t```\n\n* Refresh local WordPress content with a current copy from the staging site.\n\n\t```bash\n\tyarn setup:refresh\n\t```\n\n* Reset WordPress to a clean install, and reconfigure. This will nuke all local WordPress content!\n\n\t```bash\n\tyarn wp-env clean all\n\tyarn setup:wp\n\t```\n\n* SSH into docker container.\n\n\t```bash\n\tyarn wp-env run wordpress bash\n\t```\n\n* Run wp-cli commands. Keep the wp-cli command in quotes so that the flags are passed correctly.\n\n\t```bash\n\tyarn wp-env run cli \"post list --post_status=publish\"\n\t```\n\n* Update composer dependencies and sync any `repo-tools` changes.\n\n\t```bash\n\tyarn update:tools\n\t```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordpress%2Fwporg-theme-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwordpress%2Fwporg-theme-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordpress%2Fwporg-theme-directory/lists"}