Skip to content

Fixes #15: Move settings plugins_block initialization to init hook#17

Open
SumoTTo wants to merge 1 commit into
wp-media:masterfrom
SumoTTo:fix/15/fix-translation-loading-triggered-too-early
Open

Fixes #15: Move settings plugins_block initialization to init hook#17
SumoTTo wants to merge 1 commit into
wp-media:masterfrom
SumoTTo:fix/15/fix-translation-loading-triggered-too-early

Conversation

@SumoTTo
Copy link
Copy Markdown

@SumoTTo SumoTTo commented Apr 4, 2026

Description

Fixes #15

This change moves the initialization of $this->plugins_block from the constructor to the init action hook. This ensures that all WordPress core components, preventing "called too early" notices.

Type of change

  • New feature (non-breaking change which adds functionality).
  • [*] Bug fix (non-breaking change which fixes an issue).
  • Enhancement (non-breaking change which improves an existing functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as before).
  • Sub-task of #(issue number)
  • Chore
  • Release

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.

WordPress 6.7 Compatibility with Heartbeat Control- Translations loading too early PHP notice

2 participants