Skip to content

Commit

Permalink
Merge pull request #37 from vektor-inc/fix/wp-scripts/28.4.0
Browse files Browse the repository at this point in the history
@wordpress/scripts を 28.4.0 に更新
  • Loading branch information
goutetsuguma authored Aug 22, 2024
2 parents f95e6d5 + ded0e7c commit f8fe1f4
Show file tree
Hide file tree
Showing 5 changed files with 927 additions and 4,434 deletions.
12 changes: 12 additions & 0 deletions inc/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ function ( $categories ) {
'init',
function () {
load_plugin_textdomain( 'vk-simple-copy-block' );

// WordPress 6.5 以下の対策
if ( ! wp_script_is( 'react-jsx-runtime', 'registered' ) ) {
wp_register_script(
'react-jsx-runtime',
VK_SIMPLE_COPY_BLOCK_DIR_URL . 'build/react-jsx-runtime/react-jsx-runtime.js',
array( 'react' ),
'18.3.1',
true
);
}

$blocks = array(
'simple-copy',
'copy-target',
Expand Down
Loading

0 comments on commit f8fe1f4

Please sign in to comment.