Skip to content

Release 2.5.0 - #318

Merged
pfefferle merged 7 commits into
trunkfrom
release/2.5.0
Mar 28, 2026
Merged

Release 2.5.0#318
pfefferle merged 7 commits into
trunkfrom
release/2.5.0

Conversation

@pfefferle

Copy link
Copy Markdown
Member

Summary

  • Bump version to 2.5.0 and raise tested up to WordPress 7.0
  • Fix Error class not calling parent constructor, causing foreach() PHP warning on REST responses
  • Replace admin HTTPS notice with a proper Site Health test
  • Remove unused MICROPUB_DISABLE_NAG constant and its documentation
  • Add pfefferle as contributor
  • Update changelog

Test plan

  • Verify plugin shows version 2.5.0 on the plugins page
  • Verify no PHP warnings on REST API endpoints (/wp-json/micropub/1.0/endpoint)
  • Verify HTTPS check appears in Site Health under "Micropub" badge
  • Verify old admin notice no longer appears

- Bump version to 2.5.0 and tested up to WordPress 7.0
- Fix Error class not calling parent constructor, causing PHP warning
- Replace admin HTTPS notice with Site Health test
- Remove MICROPUB_DISABLE_NAG constant
- Add pfefferle as contributor
- Update changelog

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Release PR for the Micropub WordPress plugin, updating metadata/versioning to 2.5.0 and improving runtime behavior by fixing REST error response construction and moving the HTTPS warning into Site Health.

Changes:

  • Bump plugin/readme version metadata and WordPress “tested up to” to 7.0; add a contributor and update changelog.
  • Fix Micropub\Error to call the WP_REST_Response parent constructor (avoids REST handling warnings).
  • Replace the admin HTTPS nag/constant with a Micropub-specific Site Health test.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
readme.md Version/tested-up-to bump, contributor list update, config constant removal, and 2.5.0 changelog entry.
micropub.php Version bump and removal of MICROPUB_DISABLE_NAG constant definition.
includes/class-site-health.php Adds a Site Health test for HTTPS status.
includes/class-micropub.php Removes admin notice hook and initializes Site Health instead.
includes/class-error.php Uses parent::__construct() to properly initialize REST response internals.

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

Comment thread includes/class-site-health.php Outdated
- Move tests to tests/phpunit/ directory structure
- Rename test files to class-test-* prefix
- Update phpunit.xml.dist, bootstrap, and CI workflow
- Update .wp-env.json to match ActivityPub config
- Add phpunit/phpunit ^9 to composer require-dev
- Add test:wp-env composer script
@pfefferle
pfefferle merged commit 13157c5 into trunk Mar 28, 2026
4 checks passed
pfefferle added a commit that referenced this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants