Quellcode durchsuchen

Merge branch 'dev' of craft-in-america/vue-wp into master

tags/1.0.2
maeda vor 3 Jahren
Ursprung
Commit
2924c2403d
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 1
    0
      .drone.yml
  2. 3
    1
      plugins/cia-endpoints/includes/reformat-blocks.php

+ 1
- 0
.drone.yml Datei anzeigen

64
     status:
64
     status:
65
         # Only runs if the first pipeline was fully successful
65
         # Only runs if the first pipeline was fully successful
66
         - success
66
         - success
67
+        # Only runs on the master branch
67
     branch:
68
     branch:
68
         - master
69
         - master
69
 
70
 

+ 3
- 1
plugins/cia-endpoints/includes/reformat-blocks.php Datei anzeigen

42
             // Format for lightbox wants an object
42
             // Format for lightbox wants an object
43
             $parse_images[$id] = [
43
             $parse_images[$id] = [
44
                 'src' => $image->getAttribute('src'),
44
                 'src' => $image->getAttribute('src'),
45
-                'title' => $image->getAttribute('alt'),
45
+                'alt' => $image->getAttribute('alt'),
46
+                'title' => wp_get_attachment_caption($id),
47
+                'description' => get_the_excerpt($id)
46
             ];
48
             ];
47
         }
49
         }
48
         return $parse_images;
50
         return $parse_images;

Laden…
Abbrechen
Speichern