[wp-trac] [WordPress Trac] #64518: Interactivity API: `data-wp-bind` stops processing valid directives when encountering an invalid one

WordPress Trac noreply at wordpress.org
Thu Mar 19 21:16:23 UTC 2026


#64518: Interactivity API: `data-wp-bind` stops processing valid directives when
encountering an invalid one
--------------------------------------+--------------------------
 Reporter:  luisherranz               |       Owner:  luisherranz
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  7.0
Component:  Interactivity API         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by luisherranz):

 * owner:  (none) => luisherranz
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"62070" 62070]:
 {{{
 #!CommitTicketReference repository="" revision="62070"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64518#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list