Skip to content

fix(shell): detect plain WordPress sites without a project repo in project_open - #211

Merged
codepuncher merged 1 commit into
masterfrom
fix/project-open-site-wp-config
Oct 6, 2026
Merged

codepuncher merged 1 commit into
masterfrom
fix/project-open-site-wp-config

Conversation

@codepuncher

Copy link
Copy Markdown
Owner

Summary

po <name> could not find plain WordPress installs where only the theme is versioned (e.g. site/wp-content/themes/<theme>/.git), because the scan only looks for .git at depth 3 or 4.

Changes

  • _project_open_scan also treats root/cat/proj/site/wp-config.php (a regular file) as a project marker and resolves it to root/cat/proj
  • Existing site/ descent in project_open then lands in the WordPress root
  • Tests cover the scan, resolve, project listing and site/ descent for a git-less site

Testing

  • ./bin/bats/bin/bats tests/*.bats (25/25 pass)
  • Run po_refresh, then po <plain-wp-project> should cd into its site/ directory

@codepuncher
codepuncher merged commit da644be into master Oct 6, 2026
3 checks passed
@codepuncher
codepuncher deleted the fix/project-open-site-wp-config branch October 6, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant