WordPress/wp-includes/interactivity-api
gziolo 369a675488 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.


Built from https://develop.svn.wordpress.org/trunk@59477


git-svn-id: http://core.svn.wordpress.org/trunk@58863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-02 08:10:17 +00:00
..
class-wp-interactivity-api-directives-processor.php Interactivity API: Print debug warning when server directives processing encounters errors 2024-06-04 07:18:17 +00:00
class-wp-interactivity-api.php Interactivity API: Support length property on strings and arrays on the server 2024-12-02 08:10:17 +00:00
interactivity-api.php Interactivity API: Fix code formatting and add better types in docstrings. 2024-10-01 17:21:20 +00:00