Skip to content

Commit

Permalink
Replaces return with continue in expiration check (#404)
Browse files Browse the repository at this point in the history
* Replaces return with continue in expiration check

* Removes the return comment from the doc block
  • Loading branch information
coreymcollins authored and gregrickaby committed Oct 19, 2018
1 parent bec21c3 commit eb87d93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions inc/acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

/**
* Loop through and output ACF flexible content blocks for the current page.
*
* @return bool
*/
function _s_display_content_blocks() {
if ( have_rows( 'content_blocks' ) ) :
Expand All @@ -30,7 +28,7 @@ function _s_display_content_blocks() {
'start_date' => $other_options['start_date'],
'end_date' => $other_options['end_date'],
) ) ) {
return false;
continue;
}

get_template_part( 'template-parts/content-blocks/block', get_row_layout() ); // Template part name MUST match layout ID.
Expand Down

0 comments on commit eb87d93

Please sign in to comment.