lukecav / awesome-wp-speed-up

Plugins and resources to speed up and optimize your WordPress site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strpos() complains on Empty needle

DimArthur opened this issue · comments

Hey guys.
After the one of the recent updated w3speedster starts to fire this weird warning:
PHP message: PHP Warning: strpos(): Empty needle in /wp-content/plugins/w3speedster/includes/class_js_minify.php on line 291
Any idea why it happens?

It seems like I figured it out.
Trailing new line in the exclude_inner_javascript was the issue.
Most likely need to filter out empty lines first :)