Skip to content

Commit

Permalink
Use foreach and endforeach instead of curlybraces
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jan 17, 2018
1 parent a2463aa commit 3acae91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/meta-box-partial-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ function the_gutenberg_metaboxes() {

// Render meta boxes.
?>
<form class="metabox-base-form">
<?php gutenberg_meta_box_post_form_hidden_fields( $post ); ?>
</form>
<?php foreach ( $locations as $location ) { ?>
<form class="metabox-base-form">
<?php gutenberg_meta_box_post_form_hidden_fields( $post ); ?>
</form>
<?php foreach ( $locations as $location ) : ?>
<form class="metabox-location-<?php echo esc_attr( $location ); ?>">
<div id="poststuff" class="sidebar-open">
<div id="postbox-container-2" class="postbox-container">
Expand All @@ -325,7 +325,7 @@ function the_gutenberg_metaboxes() {
</div>
</div>
</form>
<?php } ?>
<?php endforeach; ?>
<?php

// Reset meta box data.
Expand Down

0 comments on commit 3acae91

Please sign in to comment.