Skip to content

Commit

Permalink
Resolve empty gallery preview on demo post content (#1785)
Browse files Browse the repository at this point in the history
* Fix gallery items parsing

* Revert "Fix gallery items parsing"

This reverts commit 332e295.

* Include images attribute in serialized gallery content
  • Loading branch information
aduth authored Jul 17, 2017
1 parent 8bc5077 commit 6a8e248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ window._wpGutenbergPost = {
}</code></pre>',
'<!-- /wp:core/code -->',

'<!-- wp:core/gallery {"align":"wide"} -->',
'<!-- wp:core/gallery {"align":"wide","images":[{"url":"https://cldup.com/GCwahb3aOb.jpg","alt":""},{"url":"https://cldup.com/lUUQPv6w9c.jpg","alt":""}]} -->',
'<div class="blocks-gallery alignwide columns-2 wp-block-gallery">',
'<figure class="blocks-gallery-image"><img src="https://cldup.com/GCwahb3aOb.jpg" alt="" /></figure>',
'<figure class="blocks-gallery-image"><img src="https://cldup.com/lUUQPv6w9c.jpg" alt="" /></figure>',
Expand Down

0 comments on commit 6a8e248

Please sign in to comment.