Skip to content

Commit

Permalink
Merge pull request #1300 from greenpeace/blocks-js-first
Browse files Browse the repository at this point in the history
PLANET-5964: make depend on blocks
  • Loading branch information
comzeradd authored Feb 24, 2021
2 parents 6542a86 + 00730e4 commit 0596502
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/MasterSite.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,14 @@ public function enqueue_public_assets() {
wp_enqueue_style( 'parent-style', $this->theme_dir . '/assets/build/style.min.css', [], $css_creation );

// JS files.
wp_register_script( 'jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js', [], '3.3.1', true );
wp_deregister_script( 'jquery' );
wp_register_script(
'jquery',
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js',
[ 'planet4-blocks-frontend' ],
'3.3.1',
true
);

// Variables reflected from PHP to the JS side.
$localized_variables = [
Expand Down

0 comments on commit 0596502

Please sign in to comment.