mirror of
git://develop.git.wordpress.org/
synced 2025-04-03 11:42:50 +02:00
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 . git-svn-id: https://develop.svn.wordpress.org/trunk@44949 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.6%
CSS
8.8%
JavaScript
8.1%
SCSS
0.8%
HTML
0.7%