Skip to content

Instantly share code, notes, and snippets.

Last active February 29, 2016 17:03
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Rarst/9992974 to your computer and use it in GitHub Desktop.
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