Skip to content

Commit

Permalink
Merge pull request #2605 from Automattic/fix/only-check-with-plugins
Browse files Browse the repository at this point in the history
Do not check for plugin updates when there are no plugins
  • Loading branch information
jom authored Oct 5, 2023
2 parents 8ab517e + 678169c commit 534d65f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/helper/class-wp-job-manager-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ public function addon_core_version_check( $do_check, $minimum_required_core_vers
*/
public function check_for_updates( $check_for_updates_data ) {
$installed_plugins = $this->get_installed_plugins( false, true );
$updates = $this->get_plugin_update_info( $installed_plugins );
if ( empty( $installed_plugins ) ) {
return $check_for_updates_data;
}

$updates = $this->get_plugin_update_info( $installed_plugins );

$notice_data = [];

Expand Down

0 comments on commit 534d65f

Please sign in to comment.