When the function `_template_loader_filters` was ported to core from gutenberg, it retained the filter to load block templates. However, the function `locate_block_template` is called manually in `get_query_template`, so this filter is not needed. Calling `locate_block_template` twice, results in performance issue, as `locate_block_template` is a expensive function to run, as it does database and file lookups. Props dlh, mukesh27, flixos90, SergeyBiryukov, bernhard-reiter, spacedmonkey. Fixes #58299. Built from https://develop.svn.wordpress.org/trunk@56060 git-svn-id: http://core.svn.wordpress.org/trunk@55572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
10 KiB
10 KiB