{"id":13812292,"date":"2020-12-19T17:29:25","date_gmt":"2020-12-19T17:29:25","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp-complaining-about-its-own-wp_version_check-filter\/"},"modified":"2020-12-20T22:26:38","modified_gmt":"2020-12-20T22:26:38","slug":"wp-complaining-about-its-own-wp_version_check-filter","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp-complaining-about-its-own-wp_version_check-filter\/","title":{"rendered":"WP complaining about its own wp_version_check filter?"},"content":{"rendered":"<p>Hello,<\/p>\n<p>WordPress version: 5.6 fr.<\/p>\n<p>I am being plagued by the dreaded &#8216;A plugin has prevented updates by disabling wp_version_check()&#8217; message in the site health page.<\/p>\n<p>This warning is emitted by <code>wp-admin\/includes\/class-wp-site-health-auto-updates.php<\/code> because a filter was added for &#8216;wp_version_check&#8217;.<\/p>\n<p>After quadruple-checking my plugins, I finally found the only place where the filter is being added: <code>wp-includes\/update.php<\/code>, which does it through the add_action alias of add_filter.<\/p>\n<p>But <code>wp-admin\/includes\/class-wp-site-health-auto-updates.php<\/code> and <code>wp-includes\/update.php<\/code> are both WP files, not plugin files, right?<\/p>\n<p>So&#8230; Am I right in thinking WP is complaining that&#8230; WP itself added the filter?<\/p>\n<p>More importantly: how do I get rid of this problem now? Obviously I cannot remove the filter addition in <code>wp-includes.php<\/code>, nor can I remove the filter test in <code>wp-admin\/includes\/class-wp-site-health-auto-updates.php<\/code>.<\/p>\n<p>And I can&#8217;t just ignore the warning: if I install a plugin that sets a &#8216;wp_version_check&#8217; filter too, that issue will be hidden by the current warning.<\/p>\n<p>Thanks for any tip!<\/p>\n","protected":false},"template":"","class_list":["post-13812292","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13812292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13812292\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13812292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}