Skip to content

Instantly share code, notes, and snippets.

@Rarst
Last active Feb 29, 2016
Embed
What would you like to do?
Exclude plugins and themes from update checks https://github.com/Rarst/update-blocker
@franz-josef-kaiser
Copy link

franz-josef-kaiser commented Apr 5, 2014

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