Kaynağa Gözat

:bug: adding back default api format for related posts

tags/0.9.0
j 5 yıl önce
ebeveyn
işleme
2264aa2596

+ 1
- 1
plugins/cia-endpoints/includes/related-items.php Dosyayı Görüntüle

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

Loading…
İptal
Kaydet