| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Functions to register client-side assets (scripts and stylesheets) for the Gutenberg block. |
| 4 | 4 | * |
| 5 | 5 | * @package event-post |
| 6 | - * @version 5.12.0 | |
| 6 | + * @version 6.1.2 | |
| 7 | 7 | * @since 5.2 |
| 8 | 8 | * @see https://wordpress.org/gutenberg/handbook/blocks/writing-your-first-block-type/#enqueuing-block-scripts |
| 9 | 9 | */ |
| 10 | 10 | |
| @@ -10,8 +10,10 @@ | ||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Registers eventpost/details block |
| 13 | 13 | */ |
| 14 | + | |
| 15 | + if ( ! defined( 'ABSPATH' ) ) exit; | |
| 14 | 16 | |
| 15 | 17 | function eventdetails_block_init() { |
| 16 | 18 | $dir_path = EventPost()->plugin_path; |
| 17 | 19 | |