Skip to content

Conversation

@AlexGStapleton
Copy link
Member

The 'enqueue_block_assets' action is used instead of 'enqueue_block_editor_assets' due to compatibility issues with the Site Editor. Using 'enqueue_block_editor_assets' would prevent the required assets from loading correctly in the Site Editor context.

Includes test to validate fix, and to catch any breaks due to enqueue_block_assets having to be used.

The 'enqueue_block_assets' action is used instead of 'enqueue_block_editor_assets' due to compatibility issues with the Site Editor. Using 'enqueue_block_editor_assets' would prevent the required assets from loading correctly in the Site Editor context.

Includes test to validate fix, and to catch any breaks due to `enqueue_block_assets` having to be used.
@AlexGStapleton AlexGStapleton self-assigned this Nov 2, 2025
@Misplon Misplon merged commit 4f8415b into develop Nov 3, 2025
@Misplon Misplon deleted the block-editor-prevent-editor-scripts-on-frontend branch November 3, 2025 15:01
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.

3 participants