Don't process if there are no plugins to check.

This commit is contained in:
budzanowski 2020-07-22 12:16:20 +02:00
parent ed1a181eca
commit 70c65f60f2
1 changed files with 5 additions and 0 deletions

View File

@ -205,6 +205,11 @@ class WC_Helper_Updater {
}
);
// Nothing to check for, exit.
if ( empty( $active_for_translations ) ) {
return array();
}
if ( wp_doing_cron() ) {
$timeout = 30;
} else {