/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/child-blocks.php
28 строк
601 B
Robert Anderson
Inserter: Fix handling of child blocks (#23231)
18 июн 2020, 08:30
Не верифицирован
18 июн 2020, 08:30
e1a6a78
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Child Blocks * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-child-blocks */ /** * Registers a custom script for the plugin. */ function enqueue_child_blocks_script() { wp_enqueue_script( 'gutenberg-test-child-blocks', plugins_url( 'child-blocks/index.js', __FILE__ ), array( 'wp-blocks', 'wp-block-editor', 'wp-element', 'wp-i18n', ), filemtime( plugin_dir_path( __FILE__ ) . 'child-blocks/index.js' ), true ); } add_action( 'init', 'enqueue_child_blocks_script' );