Make those inline
This commit is contained in:
@ -81,15 +81,13 @@ class CWV3 {
|
|||||||
if ( is_attachment() && isset( $post->post_parent ) ) {
|
if ( is_attachment() && isset( $post->post_parent ) ) {
|
||||||
// Special consideration needs to be taken to check if the post parent is in-fact
|
// Special consideration needs to be taken to check if the post parent is in-fact
|
||||||
// gated in any way, if so, return its ID here.
|
// gated in any way, if so, return its ID here.
|
||||||
$is_gated = $this->is_gated( $post->post_parent );
|
if ( $this->is_gated( $post->post_parent ) ){
|
||||||
if ( true === $is_gated ){
|
|
||||||
return $post->post_parent;
|
return $post->post_parent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_single() && isset( $post->ID ) ){
|
if ( is_single() && isset( $post->ID ) ){
|
||||||
$is_gated = $this->is_gated( $post->ID );
|
if ( $this->is_gated( $post->ID ) ){
|
||||||
if ( true == $is_gated ){
|
|
||||||
return $post->ID;
|
return $post->ID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user