Import your demo content, widgets and theme settings with one click. Theme authors! Enable simple theme demo import…
About Orphans
This plugin fixes line breaks that occur in the wrong position and replaces spaces after orphan words with hard spaces. Orphan words are short words that are separated from related words by line breaks. You can find the plugin on GitHub as well.Screenshots




Frequently asked questions
What is the purpose of the Orphans plugin?
The Orphans plugin supports the grammar rule for orphan words at the end of a line. It fixes orphan positions and replaces the space after an orphan with a hard space to avoid incorrect line breaks.
What is an orphan in text composition?
An orphan is a text composition error where a lonely short word, especially a single-character one, is left at the end or beginning of a verse. "Lonely" means it's separated from a closely related word by line breaks.
Where can I find the Orphans plugin?
The Orphans plugin is available in the WordPress plugin directory. It is also available on GitHub.
Changelog
Older changelog entries (3.2.x and below) live in 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
"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_domlibrary 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). - Removed the bundled
simple_html_domlibrary – 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
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,terserandclean-cssbuild dependencies have been removed. - Older changelog entries (3.2.x and below) have been moved to
CHANGELOG.mdin 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.
3.4.5 – 2026-11-03
- Build system converted from Grunt to the Bun bundler (
bun run build). - Developer documentation moved from
readme.txttoREADME.md– the WordPress.org readme is now end-user focused only. - New
bun run update-libstask to update the vendored iWorks libraries. - Translation files regenerated with wp-cli (
i18n make-pot/update-po). - Security hardening: capability check (new
iworks/orphans/capabilityfilter, defaultmanage_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-Dispositionheader. - Import/export admin scripts are loaded only on the Orphans settings screen.
- The
iworks_orphans_capabilityfilter, previously documented, is now actually applied – renamed toiworks/orphans/capabilitywith the old name kept as a deprecated fallback. - All
iworks_orphan_*(andorphans_*) filters renamed to the namespacediworks/orphans/...schema – legacy names still work as deprecated (3.6.0) fallbacks. - Fixed release packaging:
.git*,.gitmodules,.github/and.editorconfigfiles are no longer included in the ZIPs. - Fixed build: the
https://github.com/iworks/sierotkiplaceholder replacement no longer corrupts theIWORKS_ORPHANS_PLUGIN_URLconstant (a fatal error on activation). - Empty banner-only
sierotki-admin/sierotki-frontendJS 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 module to version 3.1.1.
- Fixed issue in external
simple_html_dom– missingglobal $debug_object. #21 Props for Marek Szymański.
3.4.3 – 2026-06-17
- Updated the iWorks Options module to version 3.1.0.
- Updated the 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 module to version 3.0.8.
3.4.0 – 2025-08-27
- Resolved conflict arising from differing implementations of the
acf/format_valuefilter in Advanced Custom Fields and Secure Custom Fields plugins. - Refactored codebase by separating 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 plugin has been added.
- Updated the iWorks Options module to version 3.0.7.
- Updated the iWorks Rate module to version 2.3.1.
3.3.8 – 2025-05-22
- Replaced
logo.pngbylogo.svg. - Updated the iWorks Options module to version 3.0.2.
- Updated the 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 module to version 3.0.1.
3.3.6 – 2025-04-16
- Enhanced integration with the Bricks Builder (Bricks Theme). #16. Props for Cactoo.
- Removed replacements for translation functions within the admin interface.
- Updated the iWorks Options 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
3.3.3 – 2025-03-11
- Added translation support to GitHub releases.
- Improved build process for better performance and efficiency.
- Updated the iWorks Options module to version 2.9.8.
- Updated the 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
3.3.1 – 2024-12-05
3.3.0 – 2024-12-02
- Updated the iWorks Rate module to version 2.2.1.
- The configuration import ability has been added. #10
- The configuration export ability has been added. #9
- Translation loading time has been fixed.
