/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/react-18-compat-block.php
27 строк
645 B
Jarda Snajdr
Add React 19 as an experimental flag (#79077)
11 июн 2026, 10:32
Не верифицирован
11 июн 2026, 10:32
8bc8489
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test React 18 Compat Block * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-react-18-compat-block */ add_action( 'init', static function () { wp_register_script( 'react-18-compat-block-editor', plugin_dir_url( __FILE__ ) . 'react-18-compat-block/editor.js', array( 'wp-blocks', 'wp-block-editor', 'wp-element', 'react', 'react-jsx-runtime', ), filemtime( plugin_dir_path( __FILE__ ) . 'react-18-compat-block/editor.js' ) ); register_block_type_from_metadata( __DIR__ . '/react-18-compat-block' ); } );