Release 2.5.0 - #318
Merged
Merged
Conversation
- 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
There was a problem hiding this comment.
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\Errorto call theWP_REST_Responseparent 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.
- 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
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.
Summary
Errorclass not calling parent constructor, causingforeach()PHP warning on REST responsesMICROPUB_DISABLE_NAGconstant and its documentationTest plan
/wp-json/micropub/1.0/endpoint)