[wp-trac] [WordPress Trac] #45145: Keep `@wordpress` packages up to date

WordPress Trac noreply at wordpress.org
Mon Dec 17 17:59:48 UTC 2018


#45145: Keep `@wordpress` packages up to date
------------------------------+--------------------------
 Reporter:  atimmer           |       Owner:  youknowriad
     Type:  defect (bug)      |      Status:  reopened
 Priority:  highest omg bbq   |   Milestone:  5.0
Component:  Build/Test Tools  |     Version:  5.0
 Severity:  blocker           |  Resolution:
 Keywords:  fixed-5.0         |     Focuses:
------------------------------+--------------------------

Comment (by desrosj):

 In [changeset:"44269" 44269]:
 {{{
 #!CommitTicketReference repository="" revision="44269"
 REST API: Preserve unknown, respect `null` in server-side block rendering.

 - Skips validation where there is no attribute definition, but keeps the
 attribute value. Previously, the attribute would be omitted from the
 attributes passed to `render_callback`. Notably, this resolves an issue
 where `render_callback` cannot receive a block's `align` and
 `customClassName` attribute values, since these are defined as a client-
 side filter.
 - Validates `null` as a proper value in its own right. Previously, a
 client implementation of a block could track `{“attribute":null}` as an
 explicitly empty value, and the server would wrongly initiate defaulting
 behavior. The new behavior will now only populate a default value if the
 attribute is not defined at all, including when unset in its being invalid
 per the attribute schema.

 Props aduth, noisysocks, youknowriad, danielbachhuber.

 Merges [43918] to trunk.

 See #45145 for the patch, #45098 for the original ticket.
 }}}

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


More information about the wp-trac mailing list