WordPress/wp-includes/interactivity-api
cbravobernal 9a99674204 Interactivity API: Allow missing state negation on server
Aligns on the behavior of the negation operator with directives to missing paths in client and in server.

With a directive like the following:
{{{
<div data-wp-bind--hidden="!state.missing.property">
	This should be hidden by the <code>hidden</code> attribute.
</div>
}}}

Both server and client will return with this fix:
{{{
<div data-wp-bind--hidden="!state.missing.property" hidden="">
	This should be hidden by the <code>hidden</code> attribute.
</div>
}}}

Props jonsurrell, luisherranz.
Fixes #62374.


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


git-svn-id: http://core.svn.wordpress.org/trunk@58784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-13 11:19:18 +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: Allow missing state negation on server 2024-11-13 11:19:18 +00:00
interactivity-api.php Interactivity API: Fix code formatting and add better types in docstrings. 2024-10-01 17:21:20 +00:00