Title: Orphans
Author: iworks (Marcin Pietrzak)
Published: <strong>February 16, 2011</strong>
Last modified: November 12, 2026

---

Search plugins

![](https://ps.w.org/sierotki/assets/banner-772x250.png?rev=1324978)

![](https://ps.w.org/sierotki/assets/icon.svg?rev=3296773)

# Orphans

 By [iworks (Marcin Pietrzak)](https://profiles.wordpress.org/iworks/)

[Download](https://downloads.wordpress.org/plugin/sierotki.3.5.1.zip)

[Live Preview](https://frp.wordpress.org/plugins/sierotki/?preview=1)

 * [Details](https://frp.wordpress.org/plugins/sierotki/#description)
 * [Reviews](https://frp.wordpress.org/plugins/sierotki/#reviews)
 *  [Installation](https://frp.wordpress.org/plugins/sierotki/#installation)
 * [Development](https://frp.wordpress.org/plugins/sierotki/#developers)

 [Support](https://wordpress.org/support/plugin/sierotki/)

## Description

The **Orphans** plugin automatically improves the typography of your WordPress site
by preventing single-letter or very short words—known as _orphans_—from appearing
alone at the beginning of a line. By replacing the space after these words with 
a non-breaking space, the plugin ensures cleaner, more professional-looking text
layouts, especially for languages like Polish where such typographic rules are important.

#### What are Orphans?

An _orphan_ in typography is a short word (often a single character) left isolated
at the beginning of a line, separated from the rest of the sentence. This is considered
a composition error and can negatively affect readability and the visual appeal 
of your content.

#### Key Features

 * **Automatic Orphan Fixing:** Scans your content and replaces spaces after short
   words (orphans) with non-breaking spaces, preventing them from being separated
   by line breaks.
 * **Customizable:** Easily modify which words are treated as orphans using filters,
   or provide your own list of orphan terms.
 * **Non-Destructive:** The plugin does not alter your original content in the database;
   changes are applied only when content is displayed.
 * **Builder and Plugin Integration:** Seamless compatibility with popular page 
   builders like Bricks, Divi, Muffin (beTheme), WPBakery, and Advanced Custom Fields.
 * **Flexible Usage:** Apply orphan fixes to custom fields or any string using provided
   filters.

#### How It Works

Once activated, Orphans automatically processes your posts, pages, and other content
post types, fixing orphaned words on the fly. You can customize its behavior through
the settings panel found under Appearance > Orphans, or extend functionality with
WordPress filters for advanced use cases.

#### Ideal For

 * Bloggers, publishers, and editors seeking to maintain high typographic standards.
 * Sites in languages (like Polish or Czech) where orphan control is a common publishing
   requirement.
 * Anyone wanting to enhance the professional appearance and readability of their
   WordPress content.

#### Open Source & Developer Friendly

Orphans is open source, actively maintained, and available on [GitHub](https://github.com/iworks/sierotki)
for those interested in contributing or extending its features.

#### Asset image

[Manuscript by Muffet, on Flickr](http://www.flickr.com/photos/calliope/306564541/)

## Screenshots

[⌊Options for entries.⌉⌊Options for entries.⌉[

Options for entries.

[⌊Options for widgets.⌉⌊Options for widgets.⌉[

Options for widgets.

[⌊Options for taxonomies.⌉⌊Options for taxonomies.⌉[

Options for taxonomies.

[⌊Miscellaneous options.⌉⌊Miscellaneous options.⌉[

Miscellaneous options.

## Installation

There are 3 ways to install this plugin:

#### The super easy way

 1. **Log in** to your WordPress Admin panel.
 2. **Go to: Plugins > Add New.**
 3. **Type** ‘orphans’ into the Search Plugins field and hit Enter. Once found, you
    can view details such as the point release, rating and description.
 4. **Click** Install Now. After clicking the link, you’ll be asked if you’re sure 
    you want to install the plugin.
 5. **Click** Yes, and WordPress completes the installation.
 6. **Activate** the plugin.
 7. A new menu `Orphans` in `Appearance` will appear in your Admin Menu.

#### The easy way

 1. Download the plugin (.zip file) on the right column of this page.
 2. In your Admin, go to the menu Plugins > Add.
 3. Select the button `Upload Plugin`.
 4. Upload the .zip file you just downloaded.
 5. Activate the plugin.
 6. A new menu `Orphans` in `Appearance` will appear in your Admin Menu.

#### The old and reliable way (FTP)

 1. Upload `sierotki` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. A new menu `Orphans` in `Appearance` will appear in your Admin Menu.

## FAQ

### When does this plugin replace spaces?

Plugin works when viewing the content and does not modify your content.

### How to use this plugin on the custom field?

Apply the `orphan_replace` filter to the field value — see the developer documentation(
[README.md](https://github.com/iworks/sierotki#using-the-plugin-in-code)) for examples.

### I have a problem with the plugin, or I want to suggest a feature. Where can I do this?

You can do it on [Support Threads](https://wordpress.org/support/plugin/sierotki/#new-topic-0),
but please add your ticket to [Github Issues](https://github.com/iworks/sierotki/issues).

## Reviews

![](https://secure.gravatar.com/avatar/eda45d53a44560c77b17df35263b465471752c0cb1cc9eb3fbc109c29ba0c9ff?
s=60&d=retro&r=g)

### 󠀁[Bardzo użyteczna wtyczka](https://wordpress.org/support/topic/bardzo-uzyteczna-wtyczka/)󠁿

 [Dominik](https://profiles.wordpress.org/dowys/) August 19, 2026 1 reply

Świetna robota!

![](https://secure.gravatar.com/avatar/4584cc945fc9f9bad6030d0f00a34829acb3b6590bb8fcda9b81dc11fbc17c7d?
s=60&d=retro&r=g)

### 󠀁[Super wtyczka](https://wordpress.org/support/topic/super-wtyczka-27/)󠁿

 [szubiszon](https://profiles.wordpress.org/szubiszon/) August 13, 2026 1 reply

Bardzo polecam. Dobra polska robota. Dziękuje autorowi za jej zrobienie i utrzymywanie!

![](https://secure.gravatar.com/avatar/489fd6555cf04d4a4a5dee8b0a41df635e33a529018cb37feb4bd3bc01dfc900?
s=60&d=retro&r=g)

### 󠀁[Super wtyczka](https://wordpress.org/support/topic/super-wtyczka-25/)󠁿

 [Artur](https://profiles.wordpress.org/arturoxp/) June 28, 2026 1 reply

Używam od wielu lat. Super wtyczka, robi swoje. Nigdy nie miałem z nią problemu.
Polecam!

![](https://secure.gravatar.com/avatar/cfd40233773272293c55683e45af65918699477aba81cd59c491dcca8ef99078?
s=60&d=retro&r=g)

### 󠀁[Świetna, darmowa wtyczka](https://wordpress.org/support/topic/swietna-darmowa-wtyczka/)󠁿

 [szezilla](https://profiles.wordpress.org/szezilla/) April 23, 2026 1 reply

Co ja bym zrobił bez tej wtyczki… Rozwiązuje problemy, przyspiesza pracę, jest za
darmo. Co można powiedzieć więcej. Polecam!

![](https://secure.gravatar.com/avatar/6c5b908180ba56836e2402bee57e2ecba6078dad4a65d6f3f6c5e1d0098aca90?
s=60&d=retro&r=g)

### 󠀁[Cudowny plugin](https://wordpress.org/support/topic/cudowny-plugin-2/)󠁿

 [maciejmabhv](https://profiles.wordpress.org/maciejmabhv/) November 7, 2025 1 reply

Ogromne podziękowania dla dewelopera :DD

![](https://secure.gravatar.com/avatar/30d2a539a214354f2d27075d89433494523f700a76992b61b3562451e4742249?
s=60&d=retro&r=g)

### 󠀁[Polecam](https://wordpress.org/support/topic/polecam-64/)󠁿

 [Joanna Malinowska](https://profiles.wordpress.org/prawieiedalna/) November 4, 
2025 1 reply

Fajna wtyczka, używam jej na kilku stronach zbudowanych w elementorze. Świetnie 
się sprawdza.

 [ Read all 164 reviews ](https://wordpress.org/support/plugin/sierotki/reviews/)

## Contributors & Developers

“Orphans” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ iworks (Marcin Pietrzak) ](https://profiles.wordpress.org/iworks/)

“Orphans” has been translated into 3 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/sierotki/contributors)
for their contributions.

[Translate “Orphans” into your language.](https://translate.wordpress.org/projects/wp-plugins/sierotki)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sierotki/), check out
the [SVN repository](https://plugins.svn.wordpress.org/sierotki/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/sierotki/) by [RSS](https://plugins.trac.wordpress.org/log/sierotki/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

Older changelog entries (3.2.x and below) live in [CHANGELOG.md](https://github.com/iworks/sierotki/blob/master/CHANGELOG.md).

#### 3.5.1 – 2026-11-12

 * Fixed broken Divi parent modules with child shortcodes – content containing raw
   shortcode syntax is now skipped entirely, because the HTML parser re-encoded 
   its quotes into `&quot;` entities, which broke attributes downstream (titles 
   cut to the first word, image URLs wrapped in quotes, “An error occurred” in the
   Visual Builder). Child modules are still processed when their rendered content
   passes through later filters.
 * Reduced the plugin activation/deactivation database updates from nine separate
   queries to a single one, and fixed non-prefixed global variable names flagged
   by Plugin Check.

#### 3.5.0 – 2026-11-11

 * Fixed Stored Cross-Site Scripting (XSS) via the comment parameter – the bundled`
   simple_html_dom` library re-serialized comment markup at render time, which allowed
   an unauthenticated attacker to mutate safe stored markup and inject event-handler
   attributes. The plugin now parses HTML with the WordPress HTML API (`WP_HTML_Tag_Processor`)
   and rewrites text nodes only – markup and attributes are passed through untouched.
   Props for [peppa (Patchstack)](https://patchstack.com/database/researchers/cc9ab6a7-e6d0-4f31-81f1-e77bf44609c8).
 * Removed the bundled `simple_html_dom` library – HTML is now handled by the core
   WordPress HTML API, which also reduces the plugin size by about 100 kB.
 * Content inside protected tags (`pre`, `code`, `script`, `style`, `iframe`, `svg`)
   is now skipped natively during parsing instead of being swapped with placeholders–
   the previous salted-placeholder mechanism from 3.4.6 is no longer needed and 
   has been removed.
 * The non-breaking space is now inserted as a real U+00A0 character instead of 
   the `&nbsp;` HTML entity, so it is no longer displayed as literal text.
 * The build system no longer compiles CSS/JS assets – the plugin ships none – and
   the `sass`, `terser` and `clean-css` build dependencies have been removed.
 * Older changelog entries (3.2.x and below) have been moved to [`CHANGELOG.md`](https://github.com/iworks/sierotki/blob/master/CHANGELOG.md)
   in the plugin repository to keep the WordPress.org readme lightweight.

#### 3.4.6 – 2026-11-07

 * Fixed Stored Cross-Site Scripting (XSS) via the comment parameter – the protected-
   tags placeholder digest was predictable, which allowed an unauthenticated attacker
   to restore raw markup inside an HTML attribute. The digest is now salted with
   a site-specific key. (CVE-2026-124216). Props for [Santh](https://www.wordfence.com/threat-intel/vulnerabilities/researchers/santh-2).

#### 3.4.5 – 2026-11-03

 * Build system converted from Grunt to the Bun bundler (`bun run build`).
 * Developer documentation moved from `readme.txt` to `README.md` – the WordPress.
   org readme is now end-user focused only.
 * New `bun run update-libs` task to update the vendored iWorks libraries.
 * Translation files regenerated with wp-cli (`i18n make-pot` / `update-po`).
 * Security hardening: capability check (new `iworks/orphans/capability` filter,
   default `manage_options`) is now enforced for configuration import and export.
 * Security hardening: imported option names are whitelisted to plugin options only–
   arbitrary options can no longer be overwritten.
 * Security hardening: uploaded import file is fully validated before parsing.
 * Security hardening: orphan terms are escaped with `preg_quote()` before building
   replacement patterns.
 * Export file name is now properly quoted in the `Content-Disposition` header.
 * Import/export admin scripts are loaded only on the Orphans settings screen.
 * The `iworks_orphans_capability` filter, previously documented, is now actually
   applied – renamed to `iworks/orphans/capability` with the old name kept as a 
   deprecated fallback.
 * All `iworks_orphan_*` (and `orphans_*`) filters renamed to the namespaced `iworks/
   orphans/...` schema – legacy names still work as deprecated (3.6.0) fallbacks.
 * Fixed release packaging: `.git*`, `.gitmodules`, `.github/` and `.editorconfig`
   files are no longer included in the ZIPs.
 * Fixed build: the `https://github.com/iworks/sierotki` placeholder replacement
   no longer corrupts the `IWORKS_ORPHANS_PLUGIN_URL` constant (a fatal error on
   activation).
 * Empty banner-only `sierotki-admin`/`sierotki-frontend` JS and CSS bundles are
   no longer shipped.
 * Plugin root, plugin basename and assets URL are now derived from the plugin constants
   instead of relative directory guessing.

#### 3.4.4 – 2026-07-16

 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 3.1.1.
 * Fixed issue in external `simple_html_dom` – missing `global $debug_object`. [#21](https://github.com/iworks/sierotki/issues/21)
   Props for Marek Szymański.

#### 3.4.3 – 2026-06-17

 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 3.1.0.
 * Updated the [iWorks Rate](https://github.com/iworks/iworks-rate) module to version
   2.3.2.

#### 3.4.2 – 2026-04-24

 * Updated & enhaced build process.

#### 3.4.1 – 2025-10-14

 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 3.0.8.

#### 3.4.0 – 2025-08-27

 * Resolved conflict arising from differing implementations of the `acf/format_value`
   filter in Advanced Custom Fields and Secure Custom Fields plugins.
 * Refactored codebase by separating [Secure Custom Fields](https://wordpress.org/plugins/secure-custom-fields/)
   integration into its own dedicated file.
 * Refactored codebase by separating Advanced Custom Fields integration into its
   own dedicated file.

#### 3.3.9 – 2025-08-23

 * Integration with the [Secure Custom Fields](https://wordpress.org/plugins/secure-custom-fields/)
   plugin has been added.
 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 3.0.7.
 * Updated the [iWorks Rate](https://github.com/iworks/iworks-rate) module to version
   2.3.1.

#### 3.3.8 – 2025-05-22

 * Replaced `logo.png` by `logo.svg`.
 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 3.0.2.
 * Updated the [iWorks Rate](https://github.com/iworks/iworks-rate) module to version
   2.3.0.

#### 3.3.7 – 2025-05-15

 * Enhanced PHPDoc documentation across the codebase for better maintainability.
 * Improved code organization and added proper escaping for output security.
 * Added constants for plugin paths and URLs to improve code reliability.
 * Fixed URL escaping in admin interface for better security.
 * Updated documentation with more detailed function descriptions and parameter 
   information.
 * Improved code comments and inline documentation for better developer experience.
 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 3.0.1.

#### 3.3.6 – 2025-04-16

 * Enhanced integration with the Bricks Builder (Bricks Theme). [#16](https://github.com/iworks/sierotki/issues/16).
   Props for [Cactoo](https://profiles.wordpress.org/cactoo/).
 * Removed replacements for translation functions within the admin interface.
 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 3.0.0.

#### 3.3.5 – 2025-03-24

 * The issue with the saving multiple option value has been resolved.

#### 3.3.4 – 2025-03-24

 * The issue with the saving options has been resolved. [#14](https://github.com/iworks/sierotki/issues/14).
   Props for [e-poka](https://e-poka.com/).

#### 3.3.3 – 2025-03-11

 * Added translation support to [GitHub releases](https://github.com/iworks/sierotki/releases).
 * Improved build process for better performance and efficiency.
 * Updated the [iWorks Options](https://github.com/iworks/wordpress-options-class)
   module to version 2.9.8.
 * Updated the [iWorks Rate](https://github.com/iworks/iworks-rate) module to version
   2.2.3.
 * Enhanced plugin update mechanism for smoother updates from GitHub releases.
 * Added escaping functions in multiple areas for improved security.

#### 3.3.2 – 2025-01-03

 * Check for `iworks_options` object has been added. [#12](https://github.com/iworks/sierotki/issues/12).
   Props for [maciejsb](https://wordpress.org/support/users/maciejsb/).

#### 3.3.1 – 2024-12-05

 * [Translation loading time has been fixed.](https://github.com/iworks/sierotki/issues/7)

#### 3.3.0 – 2024-12-02

 * Updated the [iWorks Rate](https://github.com/iworks/iworks-rate) module to version
   2.2.1.
 * The configuration import ability has been added. [#10](https://github.com/iworks/sierotki/issues/10)
 * The configuration export ability has been added. [#9](https://github.com/iworks/sierotki/issues/9)
 * [Translation loading time has been fixed.](https://github.com/iworks/sierotki/issues/7)

## Meta

 *  Version **3.5.1**
 *  Last updated **6 days ago**
 *  Active installations **50,000+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 8.0 or higher **
 *  Languages
 * [Czech](https://cs.wordpress.org/plugins/sierotki/), [English (US)](https://wordpress.org/plugins/sierotki/),
   [Polish](https://pl.wordpress.org/plugins/sierotki/), and [Russian](https://ru.wordpress.org/plugins/sierotki/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/sierotki)
 * Tags
 * [Czech](https://frp.wordpress.org/plugins/tags/czech/)[grammar](https://frp.wordpress.org/plugins/tags/grammar/)
   [orphan](https://frp.wordpress.org/plugins/tags/orphan/)[Polish](https://frp.wordpress.org/plugins/tags/polish/)
   [typography](https://frp.wordpress.org/plugins/tags/typography/)
 *  [Advanced View](https://frp.wordpress.org/plugins/sierotki/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  164 5-star reviews     ](https://wordpress.org/support/plugin/sierotki/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/sierotki/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/sierotki/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/sierotki/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/sierotki/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/sierotki/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sierotki/reviews/)

## Contributors

 *   [ iworks (Marcin Pietrzak) ](https://profiles.wordpress.org/iworks/)

## Support

Issues resolved in last two months:

     1 out of 1

 [View support forum](https://wordpress.org/support/plugin/sierotki/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://ko-fi.com/iworks?utm_source=sierotki&utm_medium=readme-donate)