Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 51108

add mb_strstr() to compat.php

$
0
0

Replies: 0

compat.php is

WordPress implementation for PHP functions either missing from older PHP versions or not included by default.

WP has mb_substr(), mb_strlen() for sites without multibyte string extension.

Please add mb_strstr() to compat.php.

I added mb_ functions to my Quick Mail plugin for Russian translation, and to be compatible with more languages.

Unfortunately, it produced:

Uncaught Error: Call to undefined function mb_strstr()

I am updating plugin to test if mb_strstr() exists, before using it. But it might produce incorrect results, if it falls back to strstr().

It would be better if WordPress offered an internal version, that could be used by all plugins and themes.

Thank you,
Mitchell


Viewing all articles
Browse latest Browse all 51108

Trending Articles