Eliminates widows in strings by replace the breaking space that appears before the last word with a non-breaking space.

This function is defined on WordPress.com and can be a common source of frustration for VIP devs. Now they can be frustrated in their local environments as well 🙂


Name Type Description
$str string Optional. String to operate on.

Return Value


Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.