desrosj
bc9dfcfeb1
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.
Built from https://develop.svn.wordpress.org/trunk@44269
git-svn-id: http://core.svn.wordpress.org/trunk@44099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 18:00:52 +00:00
..
2018-12-17 15:37:00 +00:00
2018-12-17 15:37:00 +00:00
2018-12-17 03:07:55 +00:00
2018-02-06 02:56:32 +00:00
2018-12-17 15:37:00 +00:00
2018-09-23 22:50:24 +00:00
2018-12-17 18:00:52 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-29 15:50:25 +00:00
2018-08-17 01:51:36 +00:00
2018-12-17 04:52:00 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 02:15:37 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-05-14 15:23:21 +00:00
2018-06-28 02:20:54 +00:00
2018-12-14 03:20:37 +00:00
2018-09-02 22:09:24 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:35:29 +00:00
2018-03-25 18:10:32 +00:00
2018-12-17 17:09:51 +00:00
2018-12-13 09:44:23 +00:00
2018-12-17 18:00:52 +00:00
2018-12-14 05:13:52 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:32:30 +00:00
2018-12-17 03:07:55 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:32:30 +00:00
2018-02-25 20:32:30 +00:00
2018-02-27 02:31:31 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:52:52 +00:00
2018-12-17 03:32:21 +00:00
2018-08-17 01:51:36 +00:00
2018-02-27 02:31:31 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2018-03-25 19:33:31 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:22:30 +00:00
2018-01-18 05:18:31 +00:00
2018-12-14 01:32:39 +00:00
2018-02-18 16:32:34 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:35:29 +00:00
2018-12-14 05:13:52 +00:00
2018-03-25 19:33:31 +00:00
2018-12-14 03:20:37 +00:00
2018-05-07 17:20:22 +00:00
2018-08-27 14:28:26 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:33:31 +00:00
2018-03-22 18:56:33 +00:00
2018-09-14 13:45:26 +00:00
2018-12-15 11:02:18 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2018-12-14 01:04:36 +00:00
2018-12-14 02:49:38 +00:00
2018-09-14 13:45:26 +00:00
2018-09-24 22:54:23 +00:00
2018-09-23 15:33:24 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:13:52 +00:00
2018-12-13 01:26:24 +00:00
2018-09-28 21:51:24 +00:00
2018-12-17 03:17:04 +00:00
2018-08-11 17:42:24 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:13:52 +00:00
2018-05-10 17:58:22 +00:00
2018-09-03 04:04:25 +00:00
2018-03-25 19:35:29 +00:00
2018-12-14 02:49:38 +00:00
2018-12-14 03:36:38 +00:00
2018-05-05 09:45:22 +00:00
2018-12-14 03:25:40 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2017-12-21 02:40:54 +00:00
2018-12-17 04:52:00 +00:00
2018-09-24 20:57:23 +00:00
2018-12-14 05:52:52 +00:00
2018-09-28 21:51:24 +00:00
2018-12-14 01:32:39 +00:00
2018-04-03 15:00:31 +00:00
2018-12-15 11:18:25 +00:00
2018-12-14 12:15:54 +00:00
2018-08-17 01:51:36 +00:00
2018-12-12 03:08:23 +00:00
2018-12-11 04:45:23 +00:00
2018-09-08 04:20:24 +00:00
2018-12-12 03:02:24 +00:00
2018-09-24 15:22:24 +00:00
2018-09-24 15:09:26 +00:00
2018-12-13 01:26:24 +00:00
2018-09-24 15:09:26 +00:00
2018-02-11 17:09:31 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:16:52 +00:00
2018-08-17 01:51:36 +00:00
2018-10-02 19:51:24 +00:00
2018-08-30 09:01:25 +00:00
2018-12-14 01:50:37 +00:00
2018-03-18 14:23:33 +00:00
2018-12-16 01:25:52 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 06:04:55 +00:00
2018-08-17 01:51:36 +00:00
2018-12-17 17:03:51 +00:00
2018-08-02 15:13:27 +00:00
2018-12-12 03:02:24 +00:00
2018-02-09 16:55:31 +00:00
2018-12-14 03:41:37 +00:00
2018-08-17 01:51:36 +00:00
2018-09-03 21:44:24 +00:00
2018-12-17 18:00:52 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00