Bläddra i källkod

:bug: fixing api forgot an arg

tags/0.9.0
j 5 år sedan
förälder
incheckning
0a650b7486
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      plugins/cia-endpoints/includes/class.make-endpoint.php

+ 1
- 1
plugins/cia-endpoints/includes/class.make-endpoint.php Visa fil

@@ -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();

Laddar…
Avbryt
Spara