Skip to content

Revert hook priority from -300982 to PHP_INT_MIN - #16

Merged
Chrico merged 1 commit into
mainfrom
fix/revert-actions-priority-to-int-min
Aug 5, 2026
Merged

Revert hook priority from -300982 to PHP_INT_MIN#16
Chrico merged 1 commit into
mainfrom
fix/revert-actions-priority-to-int-min

Conversation

@zhyian

@zhyian zhyian commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Bugfix


What is the current behavior? (You can also link to an open issue here)

Detailed description: #15


What is the new behavior (if this is a feature change)?

Reverts to PHP_INT_MIN for plugins hooks, with an inline comment and a phpcs:ignore for the HookPriority sniff, since in this specific self-removing-callback case PHP_INT_MIN is the only value structurally immune to the bug.


Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No


Other information

Fixes #15.

@zhyian
zhyian marked this pull request as ready for review August 5, 2026 13:11
@zhyian
zhyian requested a review from a team August 5, 2026 13:11
@Chrico
Chrico merged commit ecfc4ca into main Aug 5, 2026
32 checks passed
@Chrico
Chrico deleted the fix/revert-actions-priority-to-int-min branch August 5, 2026 14:29
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.

[Bug]: WpContext 1.6.0 - ACTIONS_PRIORITY change can silently break other code

3 participants