Merged in feature/MAW-855-import-code-into-aws (pull request #2)

code import from pantheon

* code import from pantheon
This commit is contained in:
Tony Volpe
2023-12-04 23:08:14 +00:00
parent 8c9b1312bc
commit 8f4b5efda6
4766 changed files with 185592 additions and 239967 deletions

View File

@@ -61,7 +61,8 @@ class Plugin implements Initializer_Interface {
public function wpseo_premium_deactivate() {
\do_action( 'wpseo_register_capabilities_premium' );
WPSEO_Capability_Manager_Factory::get( 'premium' )->remove();
$this->options_helper->set( 'tracking', false );
if ( $this->options_helper->get( 'toggled_tracking' ) !== true ) {
$this->options_helper->set( 'tracking', false );
}
}
}