| @@ -140,29 +140,23 @@ | ||
| 140 | 140 | |
| 141 | 141 | // Get settings. |
| 142 | 142 | $settings = new ConvertKit_Settings(); |
| 143 | 143 | |
| 144 | - // Get blocks and block toolbar buttons. | |
| 145 | - $blocks = convertkit_get_blocks(); | |
| 146 | - $block_formatters = convertkit_get_block_formatters(); | |
| 144 | + // Get blocks. | |
| 145 | + $blocks = convertkit_get_blocks(); | |
| 147 | 146 | |
| 148 | 147 | // Enqueue Gutenberg Javascript, and set the blocks data. |
| 149 | 148 | wp_enqueue_script( 'convertkit-gutenberg', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/gutenberg.js', array( 'jquery' ), CONVERTKIT_PLUGIN_VERSION, true ); |
| 150 | 149 | wp_localize_script( 'convertkit-gutenberg', 'convertkit_blocks', $blocks ); |
| 151 | 150 | |
| 152 | - // Enqueue Gutenberg Block Toolbar Javascript, and set the block toolbar buttons data. | |
| 153 | - wp_enqueue_script( 'convertkit-gutenberg-block-formatters', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/gutenberg-block-formatters.js', array( 'jquery' ), CONVERTKIT_PLUGIN_VERSION, true ); | |
| 154 | - wp_localize_script( 'convertkit-gutenberg-block-formatters', 'convertkit_block_formatters', $block_formatters ); | |
| 155 | - | |
| 156 | 151 | /** |
| 157 | 152 | * Enqueue any additional scripts for Gutenberg blocks that have been registered. |
| 158 | 153 | * |
| 159 | 154 | * @since 1.9.6.5 |
| 160 | 155 | * |
| 161 | - * @param array $blocks ConvertKit Blocks. | |
| 162 | - * @param array $block_formatters ConvertKit Block Formatters. | |
| 156 | + * @param array $blocks ConvertKit Blocks. | |
| 163 | 157 | */ |
| 164 | - do_action( 'convertkit_gutenberg_enqueue_scripts', $blocks, $block_formatters ); | |
| 158 | + do_action( 'convertkit_gutenberg_enqueue_scripts', $blocks ); | |
| 165 | 159 | |
| 166 | 160 | } |
| 167 | 161 | |
| 168 | 162 | /** |