|
|
@@ -51,7 +51,7 @@ class Make_Endpoint_For extends WP_REST_Controller {
|
|
51
|
51
|
return new WP_REST_Response( $this->prepare_item_for_response($args), 200 );
|
|
52
|
52
|
}
|
|
53
|
53
|
|
|
54
|
|
- private function _getAttachments($item) {
|
|
|
54
|
+ private function _getAttachments($item, $galleries) {
|
|
55
|
55
|
// Get media
|
|
56
|
56
|
$desiredSizes = ['thumbnail', 'medium', 'large', 'full'];
|
|
57
|
57
|
$all_image_ids_in_gallery = array();
|