Fix missing post ID

This commit is contained in:
Tetrakern 2023-08-17 18:14:50 +02:00
parent ef00a51301
commit 7785a31e1b
7 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ if ( ! empty( $is_hidden ) ) {
get_header( null, $header_args );
// Draft or private (if caching is on)?
$post_status = get_post_status( $post_id );
$post_status = get_post_status( get_queried_object_id() );
if (
fictioneer_caching_active() &&

View File

@ -21,7 +21,7 @@
get_header( null, array( 'type' => 'fcn_collection' ) );
// Draft or private (if caching is on)?
$post_status = get_post_status( $post_id );
$post_status = get_post_status( get_queried_object_id() );
if (
fictioneer_caching_active() &&

View File

@ -17,7 +17,7 @@
get_header( null, array( 'type' => 'fcn_recommendation' ) );
// Draft or private (if caching is on)?
$post_status = get_post_status( $post_id );
$post_status = get_post_status( get_queried_object_id() );
if (
fictioneer_caching_active() &&

View File

@ -27,7 +27,7 @@ if ( ! empty( $is_hidden ) ) {
get_header( null, $header_args );
// Draft or private (if caching is on)?
$post_status = get_post_status( $post_id );
$post_status = get_post_status( get_queried_object_id() );
if (
fictioneer_caching_active() &&

View File

@ -14,7 +14,7 @@
get_header();
// Draft or private (if caching is on)?
$post_status = get_post_status( $post_id );
$post_status = get_post_status( get_queried_object_id() );
if (
fictioneer_caching_active() &&

View File

@ -15,7 +15,7 @@
get_header();
// Draft or private (if caching is on)?
$post_status = get_post_status( $post_id );
$post_status = get_post_status( get_queried_object_id() );
if (
fictioneer_caching_active() &&

View File

@ -15,7 +15,7 @@
get_header();
// Draft or private (if caching is on)?
$post_status = get_post_status( $post_id );
$post_status = get_post_status( get_queried_object_id() );
if (
fictioneer_caching_active() &&