Commit 37559f1
committed
REST API: Skip property-dependency arrays in recursive schema keyword stripping.
Add wp_is_numeric_array() guard to the dependencies handler so
property-dependency arrays (numeric arrays of strings) are explicitly
skipped rather than relying on array_diff_key being a no-op.1 parent 9d11adc commit 37559f1
File tree
1 file changed
+2
-3
lines changed- src/wp-includes/rest-api/endpoints
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
| 248 | + | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
253 | | - | |
| 252 | + | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
| |||
0 commit comments