Fix `--skip-themes` for themes with block patterns by danielbachhuber · Pull Request #5737 · wp-cli/wp-cli
Core and the Gutenberg plugin hook a register_theme_block_patterns() function onto init. When a theme with block patterns isn't loaded, the function can cause some errors.
Because --skip-themes isn't formally supported by core, let's incorporate another hack for block pattern theme compatibility. Hopefully it doesn't come up again for another 10 years.
Fixes #5736