summaryrefslogtreecommitdiff
path: root/src/Metabox.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2020-12-16 21:05:39 +0100
committerDaniel Weipert <code@drogueronin.de>2020-12-16 21:05:39 +0100
commit3195d4785e505f664898b6d5599c844832fa9734 (patch)
treebf6e32f03fcccec6937812d35d33a971c54f381f /src/Metabox.php
parent134f3ac61a191ca1f1c4216057a2af8af274fbc0 (diff)
Fixes field reference in foreach loopv1.0.2
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);