Make WordPress Core


Ignore:
Timestamp:
06/04/2024 10:59:01 AM (21 months ago)
Author:
gziolo
Message:

Interactivity API: Directives cannot derive state on the server

The Interactivity API has a concept of "derived state" but it only worked on the client (JavaScript). This is the implementation that mirrors it, so derived state has good server-side solution.

Props jonsurrell, darerodz, gziolo, luisherranz, cbravobernal.
Fixes #61037.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-each.php

    r58321 r58327  
    582582     * @covers ::process_directives
    583583     *
    584      * @expectedIncorrectUsage WP_Interactivity_API::process_directives_args
     584     * @expectedIncorrectUsage WP_Interactivity_API::_process_directives
    585585     */
    586586    public function test_wp_each_unbalanced_tags() {
     
    602602     * @covers ::process_directives
    603603     *
    604      * @expectedIncorrectUsage WP_Interactivity_API::process_directives_args
     604     * @expectedIncorrectUsage WP_Interactivity_API::_process_directives
    605605     */
    606606    public function test_wp_each_unbalanced_tags_in_nested_template_tags() {
Note: See TracChangeset for help on using the changeset viewer.