[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 14:58:04 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 commit      |     Focuses:
  dev-reviewed fixed-major                       |
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

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

 Reviewed by gziolo.
 Merges [57841] to the to the 6.5 branch.

 Props jonsurrell, luisherranz, darerodz, gziolo, swissspidy.
 Fixes #60761.
 }}}

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


More information about the wp-trac mailing list