Commit 7525ab2
authored
Skip serializing null app_id in application password params (#1048)
WordPress 6.9-RC3 rejects `app_id: null` in the application-passwords
endpoint, returning "Invalid parameter(s): app_id". This is a regression
from previous versions where null was accepted.
Changes:
- Add `#[serde(skip_serializing_if = "Option::is_none")]` to `app_id` in
`ApplicationPasswordCreateParams` and `ApplicationPasswordUpdateParams`1 parent 8875d2f commit 7525ab2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
0 commit comments