-
Problem solved: check for has_block() inside reusable blocks
Do you check block type with has_block() to conditionally load scripts, styles, or any other custom logic for the block editor as I do? I’m not sure if you have already noticed, but has_block() doesn’t count with reusable blocks. In the docs, they don’t mention it explicitly: This test optimizes for performance rather than strict accuracy,…
-
Git: pre-push confirmation
Git pre-push hook that will prompt a confirmation y/n question before pushing to remote but origin.