| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | define('EMBEDPRESS_PLG_NAME', 'embedpress'); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | if ( ! defined('EMBEDPRESS_VERSION')) { |
| 25 | - define('EMBEDPRESS_VERSION', "4.5.3"); | |
| 25 | + define('EMBEDPRESS_VERSION', "4.2.3"); | |
| 26 | 26 | /** |
| 27 | 27 | * @deprecated 2.2.0 |
| 28 | 28 | */ |
| 29 | 29 | define('EMBEDPRESS_PLG_VERSION', EMBEDPRESS_VERSION); |
| @@ -45,16 +45,8 @@ | ||
| 45 | 45 | if ( ! defined('EMBEDPRESS_URL_ASSETS')) { |
| 46 | 46 | define('EMBEDPRESS_URL_ASSETS', plugins_url(EMBEDPRESS_PLG_NAME) . "/assets/"); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | -if ( ! defined('EMBEDPRESS_URL_STATIC')) { | |
| 50 | - define('EMBEDPRESS_URL_STATIC', plugins_url(EMBEDPRESS_PLG_NAME) . "/static/"); | |
| 51 | -} | |
| 52 | - | |
| 53 | -if ( ! defined('EMBEDPRESS_PATH_STATIC')) { | |
| 54 | - define('EMBEDPRESS_PATH_STATIC', EMBEDPRESS_PATH_BASE . "static/"); | |
| 55 | -} | |
| 56 | - | |
| 57 | 49 | if ( ! defined('EMBEDPRESS_NAMESPACE')) { |
| 58 | 50 | define('EMBEDPRESS_NAMESPACE', "\\EmbedPress"); |
| 59 | 51 | } |
| 60 | 52 | |
| @@ -157,13 +149,7 @@ | ||
| 157 | 149 | } |
| 158 | 150 | |
| 159 | 151 | |
| 160 | 152 | |
| 161 | -// Includes the EmbedPress blocks system | |
| 162 | -// Check if we should use the new block system | |
| 163 | -if (apply_filters('embedpress_use_new_block_system', true)) { | |
| 164 | - $new_block_file = __DIR__ . '/EmbedPress/Gutenberg/InitBlocks.php'; | |
| 153 | +// Includes the Gutenberg blocks for EmbedPress | |
| 154 | +require_once __DIR__ . '/Gutenberg/plugin.php'; | |
| 165 | 155 | |
| 166 | - if (file_exists($new_block_file)) { | |
| 167 | - require_once $new_block_file; | |
| 168 | - } | |
| 169 | -} | |