Skip to content

Instantly share code, notes, and snippets.

@Rarst
Last active September 5, 2024 01:47
Show Gist options
  • 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