Skip to content
Snippets Groups Projects
Commit b6395d2f authored by Krzysztof Dyszczyk's avatar Krzysztof Dyszczyk
Browse files

Do not deactivate plugin when requirements are not met

parent 5ad4b681
Branches
Tags
No related merge requests found
Pipeline #7642 failed
...@@ -347,7 +347,6 @@ class WPDesk_Basic_Requirement_Checker implements WPDesk_Translable { ...@@ -347,7 +347,6 @@ class WPDesk_Basic_Requirement_Checker implements WPDesk_Translable {
* @return void * @return void
*/ */
public function disable_plugin_render_notice() { public function disable_plugin_render_notice() {
add_action( self::HOOK_ADMIN_NOTICES_ACTION, array( $this, 'deactivate_action' ) );
add_action( self::HOOK_ADMIN_NOTICES_ACTION, array( $this, 'render_notices_action' ) ); add_action( self::HOOK_ADMIN_NOTICES_ACTION, array( $this, 'render_notices_action' ) );
} }
...@@ -361,14 +360,4 @@ class WPDesk_Basic_Requirement_Checker implements WPDesk_Translable { ...@@ -361,14 +360,4 @@ class WPDesk_Basic_Requirement_Checker implements WPDesk_Translable {
echo $notice; echo $notice;
} }
} }
/**
* @return void
*/
public function deactivate_action() {
if ( isset( $this->plugin_file ) ) {
deactivate_plugins( plugin_basename( $this->plugin_file ) );
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment