| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * Plugin Name: Code Block Pro |
| 4 | 4 | * Description: Code highlighting powered by the VS Code engine |
| 5 | 5 | * Requires at least: 6.0 |
| 6 | 6 | * Requires PHP: 7.0 |
| 7 | - * Version: 1.9.3 | |
| 7 | + * Version: 1.2.4 | |
| 8 | 8 | * Author: Kevin Batdorf |
| 9 | 9 | * License: GPL-2.0-or-later |
| 10 | 10 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 | 11 | * Text Domain: code-block-pro |
| @@ -15,17 +15,10 @@ | ||
| 15 | 15 | |
| 16 | 16 | add_action('init', function () { |
| 17 | 17 | register_block_type(__DIR__ . '/build'); |
| 18 | 18 | wp_set_script_translations('kevinbatdorf/code-block-pro', 'code-block-pro'); |
| 19 | - wp_add_inline_script('kevinbatdorf-code-block-pro-view-script', 'window.codeBlockPro = ' . wp_json_encode([ | |
| 20 | - 'pluginUrl' => esc_url_raw(plugin_dir_url(__FILE__)), | |
| 21 | - ]) . ';'); | |
| 22 | 19 | }); |
| 23 | - | |
| 24 | 20 | add_action('admin_init', function () { |
| 25 | 21 | wp_add_inline_script('kevinbatdorf-code-block-pro-editor-script', 'window.codeBlockPro = ' . wp_json_encode([ |
| 26 | 22 | 'pluginUrl' => esc_url_raw(plugin_dir_url(__FILE__)), |
| 27 | 23 | ]) . ';'); |
| 28 | 24 | }); |
| 29 | - | |
| 30 | -include_once(__DIR__ . '/php/compatibility.php'); | |
| 31 | -include_once(__DIR__ . '/php/settings.php'); | |