Interactivity API: Integrate Server Directive Processing
The Interactivity API enables WordPress developers to create dynamic and interactive web experiences with ease using a set of special HTML attributes called directives. Please refer to the [Interactivity API proposal](https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/) for further details. It syncs the changes from the Gutenberg plugin: https://github.com/WordPress/gutenberg/pull/58066. Fixes #60356. Props luisherranz, jonsurrell, swissspidy, westonruter, gziolo. Built from https://develop.svn.wordpress.org/trunk@57563 git-svn-id: http://core.svn.wordpress.org/trunk@57064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -385,9 +385,12 @@ require ABSPATH . WPINC . '/fonts/class-wp-font-utils.php';
|
||||
require ABSPATH . WPINC . '/fonts.php';
|
||||
require ABSPATH . WPINC . '/class-wp-script-modules.php';
|
||||
require ABSPATH . WPINC . '/script-modules.php';
|
||||
require ABSPATH . WPINC . '/interactivity-api.php';
|
||||
require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api.php';
|
||||
require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api-directives-processor.php';
|
||||
require ABSPATH . WPINC . '/interactivity-api/interactivity-api.php';
|
||||
|
||||
wp_script_modules()->add_hooks();
|
||||
wp_interactivity()->add_hooks();
|
||||
|
||||
$GLOBALS['wp_embed'] = new WP_Embed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user