Commit 5686166
committed
fix(wordpress): remove invalid Attachment search subtype, fix listAuthor input type
- Search Content's "Content Type" dropdown offered Attachment, which maps to
subtype=attachment. WP core's WP_REST_Post_Search_Handler explicitly
excludes attachment from valid subtypes (media isn't searchable via
/search) — selecting it guaranteed a 400 rest_invalid_param. Removed the
option; only Post/Page (the only valid subtypes) remain.
- listAuthor was declared type: 'string' in the inputs catalog despite being
Number()-coerced before use, inconsistent with every other ID-like field
(postId, pageId, categoryId, commentParent, etc. are all 'number').
Found by an independent final pre-merge validation pass, requested before
merge to be certain of full API alignment.1 parent 44a6963 commit 5686166
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
635 | 634 | | |
636 | 635 | | |
637 | 636 | | |
| |||
1132 | 1131 | | |
1133 | 1132 | | |
1134 | 1133 | | |
1135 | | - | |
| 1134 | + | |
1136 | 1135 | | |
1137 | 1136 | | |
1138 | 1137 | | |
| |||
1174 | 1173 | | |
1175 | 1174 | | |
1176 | 1175 | | |
1177 | | - | |
1178 | | - | |
| 1176 | + | |
1179 | 1177 | | |
1180 | 1178 | | |
1181 | 1179 | | |
| |||
0 commit comments