johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.58k stars 207 forks source link

Show template parts that were not loaded via the `core/template-part` block type #856

Open johnbillion opened 4 months ago

johnbillion commented 4 months ago

When the core/template-part block type is used but the requested template part is not found, Query Monitor doesn't show information about this in the Template panel like it does when get_template_part() is called.

It looks like the logic in both the collector and the outputter needs to be updated to handle this.

To reproduce in an FSE template

<!-- wp:template-part {"slug":"i-do-not-exist"} /-->