Make WordPress Core

Ticket #56617: 56617.diff

File 56617.diff, 572 bytes (added by SergeyBiryukov, 2 years ago)
  • src/wp-includes/blocks/template-part.php

     
    189189 * @return array Array containing the block variation objects.
    190190 */
    191191function build_template_part_block_instance_variations() {
     192        // Block themes are unavailable during installation.
     193        if ( wp_installing() ) {
     194                return;
     195        }
     196
    192197        $variations     = array();
    193198        $template_parts = get_block_templates(
    194199                array(