/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/inner-blocks-allowed-blocks.php
27 строк
720 B
George Mamadashvili
Migrate 'Allowed Blocks Setting on InnerBlocks' tests to Playwright (#51677)
20 июн 2023, 13:05
Не верифицирован
20 июн 2023, 13:05
e43c9b9
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test InnerBlocks Allowed Blocks * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-inner-blocks-allowed-blocks */ /** * Registers a custom script for the plugin. */ function enqueue_inner_blocks_allowed_blocks_script() { wp_enqueue_script( 'gutenberg-test-inner-blocks-allowed-blocks', plugins_url( 'inner-blocks-allowed-blocks/index.js', __FILE__ ), array( 'wp-blocks', 'wp-block-editor', 'wp-element', 'wp-i18n', ), filemtime( plugin_dir_path( __FILE__ ) . 'inner-blocks-allowed-blocks/index.js' ), true ); } add_action( 'enqueue_block_assets', 'enqueue_inner_blocks_allowed_blocks_script' );