Make WordPress Core

Ticket #54931: 54391.patch

File 54391.patch, 559 bytes (added by ianmjones, 3 years ago)

Simple patch.

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

     
    791791                $template = _build_block_template_result_from_post( $posts[0] );
    792792
    793793                if ( ! is_wp_error( $template ) ) {
    794                         return $template;
     794                        /** This filter is documented in wp-includes/block-template-utils.php */
     795                        return apply_filters( 'get_block_template', $template, $id, $template_type );
    795796                }
    796797        }
    797798