[wp-trac] [WordPress Trac] #64520: Gutenberg assets: show hash in the version footer (was: Gutenberg checkout: show hash in the version footer)
WordPress Trac
noreply at wordpress.org
Wed May 20 04:17:28 UTC 2026
#64520: Gutenberg assets: show hash in the version footer
------------------------------+------------------------------
Reporter: ellatrix | Owner: (none)
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Changes (by desrosj):
* version: trunk =>
Comment:
I agree that this could be helpful to include. In addition to the bottom,
[attachment:"at-a-glance.png"] shows how it could be included in the At a
Glance dashboard widget.
However, I'm of the opinion that this should only be displayed if the site
is:
- running a development version
- has `WP_ENVIRONMENT_TYPE` set to either `local` or `development`
(possibly `staging`).
There's also one thing preventing this, though: the hash used to used to
include files maintained in the Gutenberg repository is not included
anywhere in the resulting built files. I think the best and only way to
include this would be to introduce a new global variable in the `wp-
includes/versions.php` file and update the build process to set the value
to same value as `gutenberg.sha` in `package.json`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64520#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list