mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Editor: Update WordPress packages to Gutenberg 16.7 RC3.
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
This commit is contained in:
26
src/wp-includes/interactivity-api.php
Normal file
26
src/wp-includes/interactivity-api.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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' );
|
||||
Reference in New Issue
Block a user