Blocks: Allow reading the script handle from asset files

In the [documentation for WPDefinedAsset definition](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#wpdefinedasset) for block metadata there is a note about the handle. That was missing in WordPress core.

Props gziolo, jsnajdr, youknowriad.
Fixes #60485.




git-svn-id: https://develop.svn.wordpress.org/trunk@57590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Greg Ziółkowski
2024-02-12 11:40:49 +00:00
parent 68edf43fa9
commit 0422b53ad2
4 changed files with 130 additions and 69 deletions
@@ -0,0 +1,7 @@
<?php
return array(
'handle' => 'tests-my-shared-script',
'dependencies' => array(),
'version' => 'test',
);