Make WordPress Core


Ignore:
Timestamp:
02/08/2024 09:11:43 AM (4 months ago)
Author:
gziolo
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r57562 r57563  
    386386require ABSPATH . WPINC . '/class-wp-script-modules.php';
    387387require ABSPATH . WPINC . '/script-modules.php';
    388 require ABSPATH . WPINC . '/interactivity-api.php';
     388require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api.php';
     389require ABSPATH . WPINC . '/interactivity-api/class-wp-interactivity-api-directives-processor.php';
     390require ABSPATH . WPINC . '/interactivity-api/interactivity-api.php';
    389391
    390392wp_script_modules()->add_hooks();
     393wp_interactivity()->add_hooks();
    391394
    392395$GLOBALS['wp_embed'] = new WP_Embed();
Note: See TracChangeset for help on using the changeset viewer.