From da61e9d447a289224db4fa4edd50b52be4130726 Mon Sep 17 00:00:00 2001 From: luisherranz Date: Thu, 19 Mar 2026 21:17:58 +0000 Subject: [PATCH] Interactivity API: fix `data-wp-bind` skipping valid directives after encountering an invalid one Change `return` to `continue` in `data_wp_bind_processor` so that when an element has multiple `data-wp-bind` directives and one is invalid (empty suffix or unique ID), the invalid entry is skipped instead of causing the entire function to exit, allowing valid directives on the same element to still be processed. Props DAreRodz, ozgursar, alexodiy. Fixes #64518. Built from https://develop.svn.wordpress.org/trunk@62070 git-svn-id: http://core.svn.wordpress.org/trunk@61352 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/interactivity-api/class-wp-interactivity-api.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/interactivity-api/class-wp-interactivity-api.php b/wp-includes/interactivity-api/class-wp-interactivity-api.php index 9b0e11b086..0ee2ba8eff 100644 --- a/wp-includes/interactivity-api/class-wp-interactivity-api.php +++ b/wp-includes/interactivity-api/class-wp-interactivity-api.php @@ -1026,7 +1026,7 @@ final class WP_Interactivity_API { $entries = $this->get_directive_entries( $p, 'bind' ); foreach ( $entries as $entry ) { if ( empty( $entry['suffix'] ) || null !== $entry['unique_id'] ) { - return; + continue; } // Skip if the suffix is an event handler. diff --git a/wp-includes/version.php b/wp-includes/version.php index 84e635b557..26c3be6a8b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-beta5-62069'; +$wp_version = '7.0-beta5-62070'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.