Skip to content

Add function page for wp_is_valid_utf8 #2192

@Krinkle

Description

@Krinkle

What is the new page you are requesting?

In the latest stable release, since WordPress 6.9.0, there are new deprecation warnings shown to developers:

PHP Deprecated: Function seems_utf8 is deprecated since version 6.9.0! Use wp_is_valid_utf8() instead.

The same migration was also published on the make blog three months ago:
https://make.wordpress.org/core/2025/11/18/modernizing-utf-8-support-in-wordpress-6-9/

The blog post was probably written before the stable release, so I can understand the documentation was not ready at that time. But it seems like an oversight to release 6.9.0 with deprecation warnings nudging developers to adopt a function that is not yet documented.

How will this new page help you?

Aid in migration through usage examples, understanding differences, and potentially engage in the comment thread to hear about issues I might run into and sharing solutions.

See also:

Workaround

I'm reading the source code for now. There are high-quality doc blocks, which I believe the website will eventually use to generate its web pages:

There is also the original commit (WordPress/WordPress@ede3a79).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions