@wordpress/create-block-tutorial-template 2.32.0 → 2.32.1-next.f8d8eceb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/create-block-tutorial-template",
|
|
3
|
-
"version": "2.32.0",
|
|
3
|
+
"version": "2.32.1-next.f8d8eceb.0",
|
|
4
4
|
"description": "Template for @wordpress/create-block used in the official WordPress tutorial.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "8d8fd197e202b8104ffb1cb83048efd0a6c3faf4"
|
|
25
25
|
}
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
* @package {{namespace}}
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
34
|
+
exit; // Exit if accessed directly.
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
/**
|
|
34
38
|
* Registers the block using the metadata loaded from the `block.json` file.
|
|
35
39
|
* Behind the scenes, it registers also all assets so they can be enqueued
|