You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hooks: add_action() used for get_block_type_variations filter #33
In wp-includes/blocks/navigation-link.php at line 488, add_action() is used to register a callback on the get_block_type_variations hook, but this hook is fired with apply_filters() — making it a filter, not an action.
This originates in the Gutenberg repo at packages/block-library/src/navigation-link/index.php:488. The same add_action() call is synced to core during Gutenberg merges.
Interestingly, Gutenberg's own documentation (docs/reference-guides/block-api/block-variations.md:90) correctly shows add_filter():
Activity
apermo commentedon Mar 8, 2026
Upstream origin
This originates in the Gutenberg repo at
packages/block-library/src/navigation-link/index.php:488. The sameadd_action()call is synced to core during Gutenberg merges.Interestingly, Gutenberg's own documentation (
docs/reference-guides/block-api/block-variations.md:90) correctly showsadd_filter():The fix should go through
WordPress/gutenbergfirst, then sync to core.apermo commentedon Mar 8, 2026
WordPress/gutenberg#76296 fix happens there.