YahnisElsts/plugin-update-checker

Deprecated error

Denis82cz opened this issue · 2 comments

Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /home/wpresste/domeny/wptranslations.free.hr/wp-content/plugins/prettylink-preklad/plugin-update-checker/plugin-update-checker.php on line 760

What about that?

Thx

It looks like the plugin in question is using a pretty old version of plugin-update-checker. In the current version, the file plugin-update-checker.php doesn't even have a line 760.

(This is not a guarantee that the current version would not trigger some other deprecation notice in your case.)

Sure, I'll check out the new version then.

I had $position = strpos($haystack, $needle); on this line,
and I replaced it with the code $cachedResult = (strpos($pluginPath, chr($muPluginDir)) === 0);.

But I'll download your latest version, thank you :)