[wp-trac] [WordPress Trac] #60761: Interactivity API: Empty state objects are not correctly sent to the client
WordPress Trac
noreply at wordpress.org
Fri Mar 15 12:11:06 UTC 2024
#60761: Interactivity API: Empty state objects are not correctly sent to the client
-------------------------------------------------+-------------------------
Reporter: jonsurrell | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests dev- | Focuses:
feedback commit |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"57841" 57841]:
{{{
#!CommitTicketReference repository="" revision="57841"
Interactivity API: Do not print state if it’s an empty array.
This prunes stores and configurations that are empty arrays, as stores are
expected to be JSON objects.
By not printing empty configurations, less redundant data is serialized
into the HTML.
Props jonsurrell, luisherranz, darerodz, gziolo, swissspidy.
Fixes #60761.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60761#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list