Przeglądaj źródła

:recycle: exposing all blocks temporarily

tags/1.0.1^2^2
J 3 lat temu
rodzic
commit
0e7804cf96

+ 1
- 0
plugins/cia-endpoints/includes/class.make-endpoint.php Wyświetl plik

@@ -95,6 +95,7 @@ class Make_Endpoint_For extends WP_REST_Controller {
95 95
             $filtered[galleries] = get_ids_from_gallery_block(
96 96
                 parse_blocks($item->post_content)
97 97
             );
98
+            $filtered[blocks] = parse_blocks($item->post_content);
98 99
             $filtered[attached] = get_images_from_content($item->post_content);
99 100
             $filtered[relatedto] = p2p_related_to( $item->ID, false );
100 101
             array_push($collection, $filtered);

Ładowanie…
Anuluj
Zapisz