Ver código fonte

:recycle: moving description into title

tags/1.0.3
J 3 anos atrás
pai
commit
df19e232f3
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      plugins/cia-endpoints/includes/reformat-blocks.php

+ 2
- 2
plugins/cia-endpoints/includes/reformat-blocks.php Ver arquivo

@@ -40,11 +40,11 @@
40 40
                 $id = end($class_pieces);
41 41
             }
42 42
             // Format for lightbox wants an object
43
+            $title = wp_get_attachment_caption($id) . '\n' . get_post($id)->post_content;
43 44
             $parse_images[$id] = [
44 45
                 'src' => $image->getAttribute('src'),
45 46
                 'alt' => $image->getAttribute('alt'),
46
-                'title' => wp_get_attachment_caption($id),
47
-                'description' => get_the_excerpt($id)
47
+                'title' => $title
48 48
             ];
49 49
         }
50 50
         return $parse_images;

Carregando…
Cancelar
Salvar