TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
Hey guys, i noticed in the activate_single_plugin function if a plugin requires update, this function will still return true even if the plugin hasn't been activated.
Shouldn't this function return false if the plugin hasn't been activated, due to any reason? I would suggest return false in the $this->does_plugin_require_update( $slug ) condition check.
Hey guys, i noticed in the
activate_single_plugin
function if a plugin requires update, this function will still returntrue
even if the plugin hasn't been activated.Shouldn't this function return false if the plugin hasn't been activated, due to any reason? I would suggest
return false
in the$this->does_plugin_require_update( $slug )
condition check.