From 0a4b8868b996e6bdeb0a672d3e8459dbcfa1579e Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Mon, 5 Mar 2018 13:12:01 -0400 Subject: [PATCH] Fix coding standards error. --- partials/content-front-page.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/partials/content-front-page.php b/partials/content-front-page.php index b04a86e..c4da977 100644 --- a/partials/content-front-page.php +++ b/partials/content-front-page.php @@ -33,17 +33,17 @@ if ( get_option( 'pb_front_page_catalog' ) ) {
ID ) ) { - the_content(); - } else { - echo apply_filters( - 'the_content', - sprintf( - '[aldine_page_section]%s[/aldine_page_section]', - get_post_field( 'post_content', $post ) - ) - ); - } + if ( has_sections( $post->ID ) ) { + the_content(); + } else { + echo apply_filters( + 'the_content', + sprintf( + '[aldine_page_section]%s[/aldine_page_section]', + get_post_field( 'post_content', $post ) + ) + ); + } ?>