Skip to content

Commit

Permalink
remove templates that should never be used
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Gaechter <[email protected]>
  • Loading branch information
Levdbas and gchtr committed May 21, 2024
1 parent e938aae commit ac0b82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

$context = Timber::context();
$post = $context['post'];
$templates = array('templates/single-' . $post->ID . '.twig', 'templates/single-' . $post->post_type . '.twig', 'templates/single-' . $post->slug . '.twig', 'templates/single.twig');
$templates = array('templates/single-' . $post->post_type . '.twig', 'templates/single.twig');

if (post_password_required($post->ID)) {
$templates = 'templates/single-password.twig';
Expand Down

0 comments on commit ac0b82c

Please sign in to comment.