YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated error

Denis82cz opened this issue · 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 :)