
This plugin helps to keep some grammar rules in Czech language related to word wrapping, e.g. prepositions ‘k’, ‘s’, ‘v’ and ‘z’ cannot be placed at t
| Author: | Karolina Vyskocilova (profile at wordpress.org) |
| WordPress version required: | 6.0 |
| WordPress version tested: | 7.1.3 |
| Plugin version: | 2.2.0 |
| Added to WordPress repository: | 31-07-2009 |
| Last updated: | 06-04-2023
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 100 |
| Rated by: | 15 |
| Plugin URI: | http://wordpress.org/plugins/zalomeni/ |
| Total downloads: | 51 926 |
| Active installs: | 6 000+ |

Click to start download
|
For English, see below.
Czech: Upravujeme-li písemný dokument, radí nám Pravidla českého pravopisu nepsat neslabičné předložky v, s, z, k na konec řádku, ale psát je na stejný řádek se slovem, které nese přízvuk (např. ve spojení k mostu, s bratrem, v Plzni, z nádraží). Typografické normy jsou ještě přísnější: podle některých je nepatřičné ponechat na konci řádku jakékoli jednopísmenné slovo, tedy také předložky a spojky a, i, o, u;. Někteří pisatelé dokonce nechtějí z estetických důvodů ponechávat na konci řádků jakékoli jednoslabičné výrazy (např. ve, ke, ku, že, na, do, od, pod).
Více informací na webu Ústavu pro jazyk český, Akademie věd ČR.
Tento plugin řeší některé z uvedených příkladů: v textu nahrazuje běžné mezery za pevné tak, aby nedošlo k zalomení řádku v nevhodném místě.
English: This plugin helps to keep some grammar rules in Czech language related to word wrapping, e.g. prepositions ‘k’, ‘s’, ‘v’ and ‘z’ cannot be placed at the end of line.
Licence
WTFPL License 2.0 applies
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
Screenshots

Plugin settings

Example output
FAQ
Is Zalomení actively maintained?
Yes. The plugin returned to active development in 2026 under maintainer Karolína Vyskočilová (vyskoczilova on WordPress.org). Issues and security fixes are addressed promptly.
Where do I report security bugs found in this plugin?
Please report security bugs found in the source code of the Zalomení plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
What changed in 2.0?
2.0 i a huge security release by a new maintainer: all user inputs are sanitized, regex inputs are escaped, admin output is escaped, and the codebase is now covered by PHPUnit tests. Updating is recommended for anyone still on 1.x.
Does it work with the block editor (Gutenberg) and Classic Editor?
Yes. Zalomení runs on WordPress output filters (the_content, the_title, the_excerpt, etc.), so it works regardless of which editor produced the content.
Does it change the content stored in my database?
No. Zalomení hooks WordPress output filters, so it rewrites content on the way to the browser only. Your posts stay exactly as you wrote them, and deactivating the plugin removes every inserted non-breaking space.
Can I use it for Slovak?
Yes. The default lists of prepositions, conjunctions, and abbreviations are Czech, but they’re fully editable under Settings → Reading. Replacing the Czech entries with Slovak ones gives you a working Slovak typography filter without any code changes.
Does it work with Advanced Custom Fields (ACF)?
Yes. Wysiwyg fields run through ACF’s own acf_the_content filter instead of the_content, so the plugin hooks that one too. Text and textarea fields never pass through any content filter — the theme prints them itself — so the plugin hooks acf/format_value/type=text and acf/format_value/type=textarea.
Themes usually escape those values with esc_html(), which would turn a entity into visible text. For that reason text and textarea fields get the non-breaking space character (U+00A0) instead of the entity. It renders the same and survives escaping.
Which WordPress filters does the plugin apply to?
The plugin applies to these filters by default: comment_author, term_name, link_name, link_description, link_notes, bloginfo, wp_title, widget_title, term_description, the_title, the_content, the_excerpt, comment_text, single_post_title, list_cats, acf_the_content, bricks/frontend/render_data.
Fields of Advanced Custom Fields are covered as well — see the ACF question below.
Can I disable the plugin for specific filters?
Yes. Use the zalomeni_filtry filter to remove or add filters:
add_filter('zalomeni_filtry', 'remove_title_from_zalomeni');
function remove_title_from_zalomeni(array $filters) {
unset($filters['the_title']);
return $filters;
}
The ACF field filters have their own list, zalomeni_acf_filtry, which works the same way:
add_filter('zalomeni_acf_filtry', 'remove_acf_textarea_from_zalomeni');
function remove_acf_textarea_from_zalomeni(array $filters) {
unset($filters['acf/format_value/type=textarea']);
return $filters;
}
ChangeLog
2.2.0 (2026-10-16)
- New: Bricks Builder support — non-breaking spaces are added to the HTML Bricks renders for headers, content, footers and popups (requires WordPress 6.7+; contributed by @arteagacz)
- Only visible text is changed; attributes, scripts, styles, SVG/MathML and tags from
no_texturize_tags are left alone, and the Bricks editor is skipped
- Remove
bricks/frontend/render_data through the zalomeni_filtry filter to turn Bricks support off
2.1.0 (2026-09-25)
- New: fields of Advanced Custom Fields are handled too — wysiwyg fields through
acf_the_content, text and textarea fields through acf/format_value
- New:
zalomeni_acf_filtry filter to change the list of ACF filters the plugin hooks
- Text and textarea fields get the non-breaking space character instead of the
entity, so it survives escaping in the theme
2.0.1 (2026-08-14)
- Fix: no longer inserts a non-breaking space after an apostrophe entity, so English possessives like “America’s Response” are left alone (reported by Juraj Kopčan)
- Fix: prepositions at the very start of a paragraph now get a non-breaking space (the leading-boundary anchor never matched)
2.0.0 (2026-05-06)
- New maintainer: Karolína Vyskočilová (vyskoczilova)
- Security: added sanitize callbacks to all register_setting calls
- Security: escaped regex metacharacters in user-defined option lists (preg_quote)
- Security: added preg_replace error handling to prevent null output
- Security: filtered empty list items to prevent catch-all regex patterns
- Security: escaped custom terms to prevent regex injection while preserving \d, \w, \s
- Security: added output escaping (esc_attr, esc_js, esc_textarea) in admin settings
- Security: replaced dynamic constant() calls with static lookup array
- Security: inlined WP-private _wptexturize_pushpop_element function
- Security: added direct file access guard
- Improvement: added uninstall.php for clean option removal
- Improvement: license changed from WTFPL to GPL-2.0-or-later
- Improvement: all admin strings are now translatable via wp i18n make-pot
- Improvement: lazy-load plugin.php only on admin pages
- Improvement: guarded pre-1.3 migration against missing options
- Improvement: strict comparisons and PHP 8+ compatibility throughout
- Improvement: updated minimum requirements to WordPress 6.0 and PHP 7.0
1.5
- bug fix: kompatibilita s PHP 8+
1.4.7
- bug fix: ošetřeny strict standards v nastavení pluginu
1.4.6
- bug fix: plugin identifikoval a zpracovával prázdné řetězce jako HTML tagy, což generovalo PHP notice při zapnutém logování; ošetřeno
1.4.5
- bug fix: zalomení mezi číslem a jednotkou nefungovalo na konci řádku, resp. pokud následovala uzavírací závorka
1.4.4
1.4.3
- Ošetřen stav, kdy nejsou v databázi z nějakého důvodu uložena nastavení, v tomto případě se nyní použije výchozí nastavení. (uživatelům se chyba projevovala tak, že nastavení se zobrazovalo bez jakýchkoliv popisků, nešlo uložit a plug-in nefungoval)
1.4.2
- Zlepšena kompatibilita s utf8 (díky Pavel Krejčí)
1.4.1
- Kontrola při aktivaci pluginu na PHP verze 5.3 nebo vyšší
- Drobné optimalizace
1.4
- Zalomení po řadové číslovce nyní podporuje číslovku jako navazující slovo; takto je zajištěno nezalomení např. u data zapsaného ve formátu 1. 1. 2014
- Nová funkcionalita: zabránění zalomení mezi číslovkou a jednotkou nebo měnou (např. 1 m, 5 kg, 50 Kč)
- Nová funkcionalita: zabránění zalomení v měřítkách a poměrech (např. 1 : 1000)
- Vlastní filtr zalomeni_filtry — umožňuje odebrat nebo přidat filtry, na které se Zalomení aplikuje
- Drobné optimalizace
1.3
- Změna licence
- Změna ukládání nastavení (interní; původně pole proměnných, nyní jednotlivé proměnné samostatně, snad to vyřeší problémy některých uživatelů s ukládáním nastavení)
- Nová funkcionalita: zabránění zalomení po řadové číslovce (včetně data, např. 1. ledna)
- Nová funkcionalita: uživatelsky definované termíny, které nesmějí být zalomeny
- Screenshoty přesunuty do adresáře assets, aby se zbytečně nestahovaly uživatelům do jejich instalací WordPressu
- Plug-in předělán na PHP třídu, pro lepší izolaci a přehlednost
- WordPress již nevolá activation-hook při aktualizaci pluginu na novou verzi; aktualizace testována a volána v rámci admin_init()
1.2.4
- Dvojité volání nahrazovací funkce, plugin nefungoval pro dvě příslušná slova nacházející se za sebou (např. pokud by byly zapnuty pevné mezery za předložkami i za spojkami, pak ve výrazu “a s někým” by došlo k nahrazení mezery za “a”, ale již ne za “s”)
- Nastavení pluginu přemístěno na stránku Nastavení->Zobrazování, je zbytečné, aby měl plugin celou vlastní stránku s nastavením
1.2.3
- Opraveno volání funkce add_options_page tak, aby nepoužívalo již nepodporovaný formát.
1.2.2
- Opravena chyba v konfiguraci.
1.2.1
- Opravena chyba v HTML kódu konfigurace pluginu.
1.2
- Kompatibilita s WordPress 2.9
1.1
- Nyní umí vložit pevnou mezeru také za předložku (či jiné slovo), které se nachází na následujících pozicích: první slovo za otevírací závorkou, první slovo po nějakém tagu (např tag pro zapnutí italiky či tučného písma), na začátku odstavce.
- Rozšířen výchozí seznam zkratek, za něž se vkládá mezera
- Nahrazuje mezery v číslech za pevné mezery (např. v telefonním čísle zapsaném jako 800 123 456 nahradí mezery za pevné mezery, aby nebylo číslo rozděleno zalomením řádku).
- Interně přepsáno, již nevyužívá stávající filter wptexturize(), ale přidává vlastní filtr.
1.0