mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
9aaa49f5a7
It brings with a set of iterations and follow-ups to the initial package update. It also fixes a regression that happened for interactive blocks. Props gziolo, luisherranz, cbravobernal. See #60315. Built from https://develop.svn.wordpress.org/trunk@57499 git-svn-id: http://core.svn.wordpress.org/trunk@57000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
27 lines
575 B
PHP
27 lines
575 B
PHP
<?php
|
|
/**
|
|
* Interactivity API: Functions and hooks
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Interactivity API
|
|
*/
|
|
|
|
/**
|
|
* Registers the interactivity modules.
|
|
*/
|
|
function wp_interactivity_register_script_modules() {
|
|
wp_register_script_module(
|
|
'@wordpress/interactivity',
|
|
includes_url( '/js/dist/interactivity.min.js' ),
|
|
array()
|
|
);
|
|
|
|
wp_register_script_module(
|
|
'@wordpress/interactivity-router',
|
|
includes_url( '/js/dist/interactivity-router.min.js' ),
|
|
array( '@wordpress/interactivity' )
|
|
);
|
|
}
|
|
|
|
add_action( 'init', 'wp_interactivity_register_script_modules' );
|