| 开发者 | kotophalk |
|---|---|
| 更新时间 | 2026年8月26日 06:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
core/code and core/preformatted blocks.kodosvet-code-block folder to /wp-content/plugins/.No. Kodosvet Code Block ships as vanilla JavaScript and CSS — no Node.js, webpack, or build step required.
The plugin uses a multi-layer approach:
Yes! Go to Tools → Kodosvet Code Block and click Scan Posts. The migrator will find all posts with core/code or core/preformatted blocks and let you preview and migrate them individually or in bulk.
Yes. The migrator uses wp_update_post(), so WordPress creates a revision for each migrated post. You can roll back through the standard Revisions interface.
The plugin removes its settings (theme preference and color palette) from the database. Your code block content remains in the posts as Gutenberg block comments.
kodosvet-code-block). Internal identifiers (block name stodum/code-block, option names, CSS classes) are unchanged so existing content keeps working.load_plugin_textdomain() — translations are handled by translate.wordpress.org.register_setting() sanitize callbacks use sanitize_key() + strict whitelist comparison.$wpdb->prepare() call inlined.stodum-hljs-*) to avoid clashes with other plugins.Author URI, License URI, LICENSE file for the bundled Highlight.js, "Third-Party Libraries" section in readme.wp i18n make-json); POT/ru_RU refreshed.get_block_wrapper_attributes() for proper wide/full alignment support.wp_update_post().uninstall.php for clean removal.data-stodum-lang signal.