Skip to content

Commit eaacd6a

Browse files
committed
Merge pull request #38 from roidayan/revert_save_commit
Revert "Save all sections on save"
2 parents 7750d36 + 4734292 commit eaacd6a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/class.settings-api.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,10 @@ function show_navigation() {
470470
*/
471471
function show_forms() {
472472
?>
473-
<form method="post" action="options.php">
474-
<div class="metabox-holder">
475-
<?php foreach ( $this->settings_sections as $form ): ?>
476-
<div id="<?php echo $form['id']; ?>" class="group">
473+
<div class="metabox-holder">
474+
<?php foreach ( $this->settings_sections as $form ) { ?>
475+
<div id="<?php echo $form['id']; ?>" class="group">
476+
<form method="post" action="options.php">
477477
<?php
478478
do_action( 'wsa_form_top_' . $form['id'], $form );
479479
settings_fields( $form['id'] );
@@ -483,10 +483,10 @@ function show_forms() {
483483
<div style="padding-left: 10px">
484484
<?php submit_button(); ?>
485485
</div>
486-
</div>
487-
<?php endforeach; ?>
488-
</div>
489-
</form>
486+
</form>
487+
</div>
488+
<?php } ?>
489+
</div>
490490
<?php
491491
$this->script();
492492
}

0 commit comments

Comments
 (0)