| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | /** |
| 4 | 4 | * Plugin Name: SimpleTOC - Table of Contents Block |
| 5 | 5 | * Plugin URI: https://marc.tv/simpletoc-wordpress-inhaltsverzeichnis-plugin-gutenberg/ |
| 6 | 6 | * Description: SEO-friendly Table of Contents Gutenberg block. No JavaScript and no CSS means faster loading. |
| 7 | - * Version: 5.0.28 | |
| 7 | + * Version: 5.0.29 | |
| 8 | 8 | * Author: Marc Tönsing |
| 9 | 9 | * Author URI: https://marc.tv |
| 10 | 10 | * Text Domain: simpletoc |
| 11 | 11 | * License: GPL v2 or later |
| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | |
| 25 | 25 | add_filter('plugin_row_meta', __NAMESPACE__ . '\\simpletoc_plugin_meta', 10, 2); |
| 26 | 26 | |
| 27 | 27 | register_block_type( __DIR__ . '/build', [ |
| 28 | - 'render_callback' => __NAMESPACE__ . '\\render_callback' | |
| 28 | + 'render_callback' => __NAMESPACE__ . '\\render_callback_simpletoc' | |
| 29 | 29 | ]); |
| 30 | 30 | |
| 31 | 31 | } |
| 32 | 32 | |
| @@ -150,9 +150,9 @@ | ||
| 150 | 150 | * Render block output |
| 151 | 151 | * |
| 152 | 152 | */ |
| 153 | 153 | |
| 154 | -function render_callback( $attributes ) | |
| 154 | +function render_callback_simpletoc( $attributes ) | |
| 155 | 155 | { |
| 156 | 156 | |
| 157 | 157 | $is_backend = defined('REST_REQUEST') && true === REST_REQUEST && 'edit' === filter_input(INPUT_GET, 'context'); |
| 158 | 158 | |