summaryrefslogtreecommitdiff
path: root/src/Metabox.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Metabox.php')
-rw-r--r--src/Metabox.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Metabox.php b/src/Metabox.php
index 0f4c5d7..b2ae2e4 100644
--- a/src/Metabox.php
+++ b/src/Metabox.php
@@ -83,7 +83,7 @@ class Metabox
$fields = [$fields];
}
- foreach ($fields as $field) {
+ foreach ($fields as &$field) {
// set the field's parent
$field->parent($this->key);