Explorar el Código

:bug: adding back default api format for related posts

tags/0.9.0
j hace 5 años
padre
commit
2264aa2596
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      plugins/cia-endpoints/includes/related-items.php

+ 1
- 1
plugins/cia-endpoints/includes/related-items.php Ver fichero

@@ -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
 }

Loading…
Cancelar
Guardar