Make WordPress Core

Ticket #58132: 58132-2.diff

File 58132-2.diff, 525 bytes (added by gaft, 18 months ago)

up in the unified template object

  • src/wp-includes/block-template-utils.php

    diff --git src/wp-includes/block-template-utils.php src/wp-includes/block-template-utils.php
    index cf0c4af12e..efe7767980 100644
    function _get_block_templates_files( $template_type ) { 
    318318                                -5
    319319                        );
    320320                        $new_template_item = array(
    321                                 'slug'  => $template_slug,
     321                                'slug'  => str_replace( '\\', '/', $template_slug ),
    322322                                'path'  => $template_file,
    323323                                'theme' => $theme_slug,
    324324                                'type'  => $template_type,