Changeset 57563
- Timestamp:
- 02/08/2024 09:11:43 AM (10 months ago)
- Location:
- trunk
- Files:
-
- 16 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r57378 r57563 11 11 }, 12 12 "require": { 13 "ext-json": "*", 13 14 "php": ">=7.0" 14 15 }, -
trunk/src/wp-includes/interactivity-api.php
r57499 r57563 1 <?php2 /**3 * Interactivity API: Functions and hooks4 *5 * @package WordPress6 * @subpackage Interactivity API7 */8 9 /**10 * Registers the interactivity modules.11 */12 function wp_interactivity_register_script_modules() {13 wp_register_script_module(14 '@wordpress/interactivity',15 includes_url( '/js/dist/interactivity.min.js' ),16 array()17 );18 19 wp_register_script_module(20 '@wordpress/interactivity-router',21 includes_url( '/js/dist/interactivity-router.min.js' ),22 array( '@wordpress/interactivity' )23 );24 }25 26 add_action( 'init', 'wp_interactivity_register_script_modules' ); -
trunk/src/wp-settings.php
r57562 r57563 386 386 require ABSPATH . WPINC . '/class-wp-script-modules.php'; 387 387 require ABSPATH . WPINC . '/script-modules.php'; 388 require ABSPATH . WPINC . '/interactivity-api.php'; 388 require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api.php'; 389 require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api-directives-processor.php'; 390 require ABSPATH . WPINC . '/interactivity-api/interactivity-api.php'; 389 391 390 392 wp_script_modules()->add_hooks(); 393 wp_interactivity()->add_hooks(); 391 394 392 395 $GLOBALS['wp_embed'] = new WP_Embed();
Note: See TracChangeset
for help on using the changeset viewer.