mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-03 07:27:34 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57499 602fd350-edb4-49c9-b593-d223f7449a82
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' );
|