[wp-trac] [WordPress Trac] #62582: Support length property on strings and arrays on the server

WordPress Trac noreply at wordpress.org
Mon Dec 2 08:08:49 UTC 2024


#62582: Support length property on strings and arrays on the server
--------------------------------------+---------------------
 Reporter:  jonsurrell                |       Owner:  gziolo
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.8
Component:  Interactivity API         |     Version:  6.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by gziolo):

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


Comment:

 In [changeset:"59477" 59477]:
 {{{
 #!CommitTicketReference repository="" revision="59477"
 Interactivity API: Support length property on strings and arrays on the
 server

 The Interactivity API tries to align client and server rendering so that
 the behavior is the same. Adds missing handling for `.length` to
 directives processing on the server on strings and numeric arrays which is
 inherently supported through JavaScript language on the client.

 Props jonsurrell, gziolo, luisherranz.
 Fixes #62582.
 }}}

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


More information about the wp-trac mailing list