Skip to content

Commit

Permalink
Tiled gallery: add wp-polyfill as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
simison committed Mar 5, 2019
1 parent 4f812a8 commit 5a755be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions class.jetpack-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public static function enqueue_block_editor_assets() {
'wp-i18n',
'wp-keycodes',
'wp-plugins',
'wp-polyfill',
'wp-rich-text',
'wp-token-list',
'wp-url',
Expand Down
5 changes: 4 additions & 1 deletion extensions/blocks/tiled-gallery/tiled-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class_exists( 'Jetpack_Photon' ) && Jetpack::is_module_active( 'photon' )
* @return string
*/
function jetpack_tiled_gallery_load_block_assets( $attr, $content ) {
Jetpack_Gutenberg::load_assets_as_required( 'tiled-gallery' );
Jetpack_Gutenberg::load_assets_as_required(
'tiled-gallery',
array( 'wp-polyfill' )
);

/**
* Filter the output of the Tiled Galleries content.
Expand Down

0 comments on commit 5a755be

Please sign in to comment.