aduth 9cf4ee65a7 Scripts: Assign api-fetch nonce with corrected rest_nonce.
As of `@wordpress/api-fetch@3.0.0` (introduced in 44812), the `apiFetch` nonce middleware must have its nonce value assigned explicitly, and will no longer listen for heartbeat ticks automatically. This changeset adds an inline script for the default registration of the `api-fetch` script handle to assign the nonce value in response to the heartbeat action. In doing so, it removes the now-unused, misnamed `rest-nonce` property from the heartbeat response, whose original introduction served as temporary compatibility with earlier versions of `@wordpress/api-fetch`.

See https://github.com/WordPress/gutenberg/pull/13451
See #45113

Props adamsilverstein, nerrad .
Fixes #46107 .

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


git-svn-id: http://core.svn.wordpress.org/trunk@44780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-03-20 20:53:50 +00:00
..
2019-02-25 15:21:52 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00