Skip to content

Instantly share code, notes, and snippets.

Last active February 29, 2016 17:03
What would you like to do?
Exclude plugins and themes from update checks
Copy link

if ( false !== strpos( $url, '' ) ) could just be

if ( ! strpos( $url, '' ) )

logic follows after that.

Copy link

Rarst commented Apr 5, 2014

Yeah, that is just leftover since old version included protocol in comparison (so match would be 0 position).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment