| @@ -1,8 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -define( 'QI_BLOCKS_VERSION', '1.0' ); | |
| 4 | -define( 'QI_BLOCKS_ABS_PATH', dirname( __FILE__ ) ); | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + // Exit if accessed directly. | |
| 5 | + exit; | |
| 6 | +} | |
| 7 | + | |
| 8 | +define( 'QI_BLOCKS_VERSION', '1.5.3' ); | |
| 9 | +define( 'QI_BLOCKS_ABS_PATH', __DIR__ ); | |
| 5 | 10 | define( 'QI_BLOCKS_REL_PATH', dirname( plugin_basename( __FILE__ ) ) ); |
| 6 | 11 | define( 'QI_BLOCKS_URL_PATH', plugin_dir_url( __FILE__ ) ); |
| 7 | 12 | define( 'QI_BLOCKS_ASSETS_PATH', QI_BLOCKS_ABS_PATH . '/assets' ); |
| 8 | 13 | define( 'QI_BLOCKS_ASSETS_URL_PATH', QI_BLOCKS_URL_PATH . 'assets' ); |
| @@ -13,5 +18,6 @@ | ||
| 13 | 18 | define( 'QI_BLOCKS_ADMIN_PATH', QI_BLOCKS_INC_PATH . '/admin' ); |
| 14 | 19 | define( 'QI_BLOCKS_ADMIN_URL_PATH', QI_BLOCKS_INC_URL_PATH . '/admin' ); |
| 15 | 20 | |
| 16 | 21 | define( 'QI_BLOCKS_ACTIVATED_TRANSIENT', 'qi_blocks_plugin_activated' ); |
| 22 | +define( 'QI_BLOCKS_GENERAL_OPTIONS', 'qi_blocks_general_options' ); | |
| 17 | 23 | define( 'QI_BLOCKS_DISABLED_BLOCKS', 'qi_blocks_disabled_blocks' ); |