There are a few instances of Attachment-specific conditionals in the Posts controller that would be better off in the Attachments controller: - [ ] https://github.com/WP-API/WP-API/blob/a93ea66d361ae24882cd002b0fa0ff1503726522/lib/endpoints/class-wp-rest-posts-controller.php#L537-L539 - [ ] https://github.com/WP-API/WP-API/blob/a93ea66d361ae24882cd002b0fa0ff1503726522/lib/endpoints/class-wp-rest-posts-controller.php#L962-L972 - [ ] https://github.com/WP-API/WP-API/blob/a93ea66d361ae24882cd002b0fa0ff1503726522/lib/endpoints/class-wp-rest-posts-controller.php#L1615 - [ ] https://github.com/WP-API/WP-API/blob/a93ea66d361ae24882cd002b0fa0ff1503726522/lib/endpoints/class-wp-rest-posts-controller.php#L1636
There are a few instances of Attachment-specific conditionals in the Posts controller that would be better off in the Attachments controller:
WP-API/lib/endpoints/class-wp-rest-posts-controller.php
Lines 537 to 539 in a93ea66
WP-API/lib/endpoints/class-wp-rest-posts-controller.php
Lines 962 to 972 in a93ea66
WP-API/lib/endpoints/class-wp-rest-posts-controller.php
Line 1615 in a93ea66
WP-API/lib/endpoints/class-wp-rest-posts-controller.php
Line 1636 in a93ea66