🔵 other: Initial WP conversion from Eleventy
Sync TODOs with Issues / sync_todos (push) Successful in 7s

This commit is contained in:
Keith Solomon
2026-05-25 16:48:48 -05:00
parent 2e5bfaba89
commit dcb38250f8
56 changed files with 965 additions and 318 deletions
+10 -8
View File
@@ -158,15 +158,17 @@ class ShowTemplate {
$fudge = isset( $get_footer ) ? $get_footer : $wp_footer;
if ( $fudge === $this->template || $fudge === false ) {
echo wp_kses_post( "<!-- Active Template: {$this->template} -->\n" );
// phpcs:disable
echo "<!-- 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" );
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
}
}
}