PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | src/Framework/FieldsAPI/Concerns/RemoveNode.php +2 -0 2.30.04.16.9 View file →
@@ -6,8 +6,9 @@
6 6
7 7 trait RemoveNode
8 8 {
9 9 /**
10 + * @since 3.0.0 preserve array numeric keys
10 11 * @since 2.10.2
11 12 *
12 13 * @return static
13 14 */
@@ -15,8 +16,9 @@
15 16 {
16 17 foreach ($this->nodes as $index => $node) {
17 18 if ($node->getName() === $name) {
18 19 unset($this->nodes[$index]);
20 + $this->nodes = array_values($this->nodes);
19 21
20 22 return $this;
21 23 }
22 24 if ($node instanceof Collection) {