Fix missing post ID
This commit is contained in:
parent
ef00a51301
commit
7785a31e1b
@ -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() &&
|
||||
|
@ -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() &&
|
||||
|
@ -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() &&
|
||||
|
@ -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() &&
|
||||
|
@ -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() &&
|
||||
|
@ -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() &&
|
||||
|
@ -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() &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user