' . esc_html__( 'Activation failed:', 'wordpress-seo' ) . ' ' . strip_tags( $message, '' ) . '
';
}
/**
* The method will deactivate the plugin, but only once, done by the static $is_deactivated.
*
* @return void
*/
function yoast_wpseo_self_deactivate() {
static $is_deactivated;
if ( $is_deactivated === null ) {
$is_deactivated = true;
deactivate_plugins( WPSEO_BASENAME );
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
}
}
/**
* Aliasses added in order to keep compatibility with Yoast SEO: Local.
*/
class_alias( '\Yoast\WP\SEO\Initializers\Initializer_Interface', '\Yoast\WP\SEO\WordPress\Initializer' );
class_alias( '\Yoast\WP\SEO\Loadable_Interface', '\Yoast\WP\SEO\WordPress\Loadable' );
class_alias( '\Yoast\WP\SEO\Integrations\Integration_Interface', '\Yoast\WP\SEO\WordPress\Integration' );