Skip to content

Commit

Permalink
Fallback to isset().
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko authored and Anton Vlasenko committed Jan 30, 2024
1 parent ae6a161 commit 8249699
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/file/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function register_block_core_file() {

wp_register_script_module(
'@wordpress/block-library/file',
$module_url ?? includes_url( 'blocks/file/view.min.js' ),
isset( $module_url ) ? $module_url : includes_url( 'blocks/file/view.min.js' ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function register_block_core_image() {

wp_register_script_module(
'@wordpress/block-library/image',
$module_url ?? includes_url( 'blocks/image/view.min.js' ),
isset( $module_url ) ? $module_url : includes_url( 'blocks/image/view.min.js' ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ function register_block_core_navigation() {

wp_register_script_module(
'@wordpress/block-library/navigation',
$module_url ?? includes_url( 'blocks/navigation/view.min.js' ),
isset( $module_url ) ? $module_url : includes_url( 'blocks/navigation/view.min.js' ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/query/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function register_block_core_query() {

wp_register_script_module(
'@wordpress/block-library/query',
$module_url ?? includes_url( 'blocks/query/view.min.js' ),
isset( $module_url ) ? $module_url : includes_url( 'blocks/query/view.min.js' ),
array(
array(
'id' => '@wordpress/interactivity',
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function register_block_core_search() {

wp_register_script_module(
'@wordpress/block-library/search',
$module_url ?? includes_url( 'blocks/search/view.min.js' ),
isset( $module_url ) ? $module_url : includes_url( 'blocks/search/view.min.js' ),
array( '@wordpress/interactivity' ),
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
);
Expand Down

0 comments on commit 8249699

Please sign in to comment.