diff options
author | Daniel Weipert <code@drogueronin.de> | 2020-12-16 21:05:39 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2020-12-16 21:05:39 +0100 |
commit | 3195d4785e505f664898b6d5599c844832fa9734 (patch) | |
tree | bf6e32f03fcccec6937812d35d33a971c54f381f /src | |
parent | 134f3ac61a191ca1f1c4216057a2af8af274fbc0 (diff) |
Fixes field reference in foreach loopv1.0.2
Diffstat (limited to 'src')
-rw-r--r-- | src/Metabox.php | 2 |
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); |