Skip to content

Commit

Permalink
fix: dont provide post again
Browse files Browse the repository at this point in the history
  • Loading branch information
Levdbas committed May 15, 2024
1 parent c56b1b9 commit ff3ee4e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@

use Timber\Timber;

$post = Timber::get_post();
$context = Timber::context(
[
'post' => $post,
]
);
$context = Timber::context();
$post = $context['post'];

if (post_password_required($post->ID)) {
Timber::render('single-password.twig', $context);
Expand Down

0 comments on commit ff3ee4e

Please sign in to comment.