Skip to content

Update/misc updates part 1 - #169

Merged
amerk-sitecrafting merged 20 commits into
mainfrom
update/misc-updates-part-1
Aug 19, 2026
Merged

amerk-sitecrafting merged 20 commits into
mainfrom
update/misc-updates-part-1

Conversation

@amerk-sitecrafting

Copy link
Copy Markdown
Contributor

Ticket: #

Issue

A number of tickets are fixed in this PR

  • GRT-260
  • GRT-245
  • GRT-246
  • GRT-244
  • GRT-252
  • GRT-255
  • GRT-261

Impact

There should not be any impactful changes to the source code.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bundles a set of maintenance updates across test bootstrapping, local WordPress setup scripts, release packaging, static analysis bootstrapping, and CI configuration—primarily aimed at improving developer workflows and reducing brittle CI/test behavior.

Changes:

  • Reworks the test bootstrap’s deprecated-hook detection to avoid reflection against WP_Mock internals.
  • Updates local WordPress setup and release packaging scripts (dynamic Lando URL usage, hard rewrite flush with generated .htaccess, and staging-based archives).
  • Migrates away from Travis by removing .travis.yml and adding a GitHub Actions workflow intended to provide CI parity.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/bootstrap.php Adds lightweight hook registration tracking and removes reflection-based WP_Mock inspection.
scripts/setup-wordpress.sh Uses Lando runtime info to set install URL and ensures permalinks work via .htaccess + hard flush.
scripts/build-release.sh Builds release archives from a staged temp directory instead of symlinking in repo root.
README.md Removes Travis CI badge.
phpstan/bootstrap.php Defines WPMU_PLUGIN_DIR for PHPStan symbol discovery/analysis.
phpstan.neon.dist Removes an unused TODO comment from ignoreErrors.
lib/Conifer/Site.php Formatting/style adjustments; touches doc examples near context().
.travis.yml Removes legacy Travis CI configuration.
.github/workflows/travis.yml Adds GitHub Actions workflow intended to replace Travis CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/bootstrap.php Outdated
Comment on lines +61 to 68
APP_URL=$(php -r '
$info = json_decode(getenv("LANDO_INFO"), true);
echo $info["appserver"]["urls"][0] ?? "";
')
# install WordPress
wp core install \
--url='http://conifer.lndo.site' \
--url="$APP_URL" \
--title='Conifer' \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amerk-sitecrafting Adding a sanity check for APP_URL is probably a worthwhile addition.

Comment thread .github/workflows/travis.yml Outdated
Comment thread .github/workflows/travis.yml Outdated
Comment thread .github/workflows/travis.yml Outdated
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Deploying conifer-plugin with  Cloudflare Pages  Cloudflare Pages

Latest commit: 96d0678
Status: ✅  Deploy successful!
Preview URL: https://7c16f566.conifer-plugin.pages.dev
Branch Preview URL: https://update-misc-updates-part-1.conifer-plugin.pages.dev

View logs

@rhendrickson-sc rhendrickson-sc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the changes are looking good, but left some comments and questions for ya!

Comment thread .github/workflows/travis.yml Outdated
- name: PHPStan
run: vendor/bin/phpstan analyse

docs:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throwing it out there that you can remove this whole docs job. Cloudflare automatically looks at main and re-compiles the docs on its own. Cloudflare also handles building the docs for PRs that are made.

Comment thread .github/workflows/travis.yml Outdated
Comment thread .github/workflows/travis.yml Outdated
Comment thread .github/workflows/travis.yml Outdated
Comment thread .github/workflows/travis.yml Outdated
Comment thread .github/workflows/travis.yml Outdated
Comment thread scripts/build-release.sh Outdated
)

rm -rf "$staging_dir"
trap - EXIT

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm personally not a fan of relying on trap here for this. It'd probably be better to remove line 70 and this line, and rely on the good ole rm -rf "$staging_dir" line that you have.

Comment on lines +61 to 68
APP_URL=$(php -r '
$info = json_decode(getenv("LANDO_INFO"), true);
echo $info["appserver"]["urls"][0] ?? "";
')
# install WordPress
wp core install \
--url='http://conifer.lndo.site' \
--url="$APP_URL" \
--title='Conifer' \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amerk-sitecrafting Adding a sanity check for APP_URL is probably a worthwhile addition.

Comment thread scripts/setup-wordpress.sh Outdated
wp option set permalink_structure '/%postname%/'
wp rewrite flush

HTACCESS_PATH="$WP_DIR/.htaccess"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding an .htaccess file here? Iirc all our Lando setups are designed to use Nginx, and we use Nginx in production.

@rhendrickson-sc rhendrickson-sc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@amerk-sitecrafting
amerk-sitecrafting merged commit 96d0678 into main Aug 19, 2026
1 of 2 checks passed
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.

3 participants