Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blocks not completely disabled #2

Open
8ctopus opened this issue Jan 30, 2025 · 0 comments
Open

blocks not completely disabled #2

8ctopus opened this issue Jan 30, 2025 · 0 comments

Comments

@8ctopus
Copy link

8ctopus commented Jan 30, 2025

First of all thank you for the plugin, nicely done! While debugging some issue in our production setup related to the blocks, I've noticed that the plugin actually does not fully disable blocks as _register_theme_block_patterns is still called.

You may want to add the following line to the plugin, which will decrease unnecessary calls and therefore accelerate wp a bit.

remove_action('init', '_register_theme_block_patterns');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant