🐞 fix: Update escaping for template id script
Sync TODOs with Issues / sync_todos (push) Successful in 6s

This commit is contained in:
Keith Solomon
2026-08-18 10:03:23 -05:00
parent cc463c6131
commit fe52e51bd9
+9 -7
View File
@@ -160,13 +160,15 @@ class ShowTemplate {
if ( $fudge === $this->template || $fudge === false ) {
echo wp_kses_post( "<!-- Active Template: {$this->template} -->\n" );
} else {
echo esc_html( "<!--\n" );
echo esc_html( "The template loader logic has chosen a different template than what was used.\n\n" );
echo esc_html( "Chosen Template: {$this->template}\n" );
echo esc_html( "Actual Template: $fudge\n\n" );
echo esc_html( "This will usually occur if the template file was overriden using an action on template_redirect.\n" );
echo esc_html( "This is a best effort guess to catch such scenarios as mentioned above but can be incorrect.\n" );
echo esc_html( "-->\n" );
// phpcs:disable
echo "<!--\n";
echo "The template loader logic has chosen a different template than what was used.\n\n";
echo "Chosen Template: {$this->template}\n";
echo "Actual Template: $fudge\n\n";
echo "This will usually occur if the template file was overriden using an action on template_redirect.\n";
echo "This is a best effort guess to catch such scenarios as mentioned above but can be incorrect.\n";
echo "-->\n";
// phpcs:enable
}
}
}