/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/e2e-tests/plugins/plugins-error-boundary.php
27 строк
716 B
George Mamadashvili
Plugins: Add error boundary (#38397)
03 фев 2022, 11:27
Не верифицирован
03 фев 2022, 11:27
e3164e0
Код
Авторство
О чём код?
<?php /** * Plugin Name: Gutenberg Test Plugin, Plugins Error Boundary * Plugin URI: https://github.com/WordPress/gutenberg * Author: Gutenberg Team * * @package gutenberg-test-plugin-plugins-error-boundary */ /** * Registers custom scripts for the plugin error boundary. */ function enqueue_plugins_error_boundary_plugin_scripts() { wp_enqueue_script( 'gutenberg-test-plugin-plugins-error-boundary', plugins_url( 'plugins-api/error-boundary.js', __FILE__ ), array( 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', ), filemtime( plugin_dir_path( __FILE__ ) . 'plugins-api/error-boundary.js' ), true ); } add_action( 'init', 'enqueue_plugins_error_boundary_plugin_scripts' );