Commit 1720cf2
committed
Fixes type error in /includes/class-acf-data.php
* Updated `_key()` to first verify that the provided key is a string or integer before accessing aliases.
* Updated `get()` to verify the derived key is valid before accessing the data array.
Signed-off-by: mavrokordato <info@wordpress-premium.net>1 parent 2be073e commit 1720cf2
1 file changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
| |||
139 | 149 | | |
140 | 150 | | |
141 | 151 | | |
142 | | - | |
143 | 152 | | |
144 | 153 | | |
145 | 154 | | |
| 155 | + | |
146 | 156 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
151 | 163 | | |
| 164 | + | |
| 165 | + | |
152 | 166 | | |
153 | 167 | | |
154 | 168 | | |
| |||
0 commit comments