Skip to content

Extract Plugin::boot() from the constructor. - #1991

Draft
shadyvb wants to merge 1 commit into
ticket/XWPENG-47-matchfrom
ticket/XWPENG-48-plugin-boot
Draft

Extract Plugin::boot() from the constructor.#1991
shadyvb wants to merge 1 commit into
ticket/XWPENG-47-matchfrom
ticket/XWPENG-48-plugin-boot

Conversation

@shadyvb

@shadyvb shadyvb commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #000.

Describe your approach and how it fixes the issue.

Checklist

  • Project documentation has been updated to reflect the changes in this pull request, if applicable.
  • I have tested the changes in the local development environment (see contributing.md).
  • I have added phpunit tests.

Release Changelog

  • Fix: Describe a bug fix included in this release.
  • New: Describe a new feature in this release.

Release Checklist

  • This pull request is to the master branch.
  • Release version follows semantic versioning. Does it include breaking changes?
  • Update changelog in readme.txt.
  • Bump version in stream.php.
  • Bump Stable tag in readme.txt.
  • Bump version in classes/class-plugin.php.
  • Draft a release on GitHub.

Change [ ] to [x] to mark the items as done.

Move side-effecting bootstrap into boot() after locations are set; the
constructor still calls boot() so hook timing is unchanged. Add Plugin_Test
coverage for actions registered in boot() and filter side effects.
@shadyvb shadyvb changed the title ticket/XWPENG 48 plugin boot Extract Plugin::boot() from the constructor. Sep 5, 2026
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