Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent YOURLS checking for updates #2851

Closed
ozh opened this issue Feb 27, 2021 · 0 comments
Closed

How to prevent YOURLS checking for updates #2851

ozh opened this issue Feb 27, 2021 · 0 comments
Labels
plugin This is an idea for a plugin. Anyone interested in making it?

Comments

@ozh
Copy link
Member

ozh commented Feb 27, 2021

Scenario : you don't want YOURLS to check for version updates (ie stop YOURLS from polling api.yourls.org to see if a new release is available)

Answer : this simple plugin

<?php
/*
Plugin Name: No Version Check
Plugin URI: https://github.com/YOURLS/YOURLS/issues/2851
Description: Stop YOURLS from checking if a new release is available
Version: 1.0
Author: Ozh
Author URI: https://ozh.org/
*/

// No direct call
if( !defined( 'YOURLS_ABSPATH' ) ) die();

yourls_add_filter('shunt_maybe_check_core_version', 'yourls_return_false');
@ozh ozh added the plugin This is an idea for a plugin. Anyone interested in making it? label Feb 27, 2021
@ozh ozh closed this as completed Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin This is an idea for a plugin. Anyone interested in making it?
Projects
None yet
Development

No branches or pull requests

1 participant