Pārlūkot izejas kodu

:bug: adding back default api format for related posts

tags/0.9.0
j 5 gadus atpakaļ
vecāks
revīzija
2264aa2596
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      plugins/cia-endpoints/includes/related-items.php

+ 1
- 1
plugins/cia-endpoints/includes/related-items.php Parādīt failu

@@ -28,7 +28,7 @@ function prepare_related_items($post_ids) {
28 28
     );
29 29
     $related_items = get_posts($args);
30 30
     forEach( $related_items as $item ) {
31
-        $collection[$item->ID] = $item;
31
+        $collection[$item->ID] = default_post_format($item, true);
32 32
     }
33 33
     return $collection;
34 34
 }

Notiek ielāde…
Atcelt
Saglabāt