Skip to content

Commit

Permalink
remove script registration from nav block
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Canales committed Mar 5, 2021
1 parent 37c43d2 commit f4b0d01
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,6 @@ function render_block_core_navigation( $attributes, $content, $block ) {

unset( $attributes['rgbTextColor'], $attributes['rgbBackgroundColor'] );

// wp_enqueue_script(
// 'core_block_navigation_load_frontend_scripts',
// plugins_url( 'gutenberg/build/block-library-frontend/index.js' ),
// array(),
// null,
// true
// );

wp_register_script(
'core_block_navigation_load_frontend_scripts',
plugins_url( 'gutenberg/build/block-library-frontend/index.js' ),
array(),
false,
true
);

if ( empty( $block->inner_blocks ) ) {
return '';
}
Expand Down

0 comments on commit f4b0d01

Please sign in to comment.