Skip to content

Instantly share code, notes, and snippets.

@Rarst
Last active February 29, 2016 17:03
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rarst/9992974 to your computer and use it in GitHub Desktop.
Save Rarst/9992974 to your computer and use it in GitHub Desktop.
Exclude plugins and themes from update checks https://github.com/Rarst/update-blocker
@franz-josef-kaiser
Copy link

if ( false !== strpos( $url, 'api.wordpress.org/plugins/update-check' ) ) could just be

if ( ! strpos( $url, 'api.wordpress.org/plugins/update-check' ) )
    return;

logic follows after that.

@Rarst
Copy link
Author

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