' . esc_html__( 'Activation failed:', 'wordpress-seo' ) . ' ' . strip_tags( $message, '' ) . '
';
}
/**
* The method will deactivate the plugin, but only once, done by the static $is_deactivated.
*/
function yoast_wpseo_self_deactivate() {
static $is_deactivated;
if ( $is_deactivated === null ) {
$is_deactivated = true;
deactivate_plugins( plugin_basename( WPSEO_FILE ) );
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
}
}
/**
* Excludes specific files from php-compatibility-checker.
*
* @since 9.4
*
* @param array $ignored Array of ignored directories/files.
*
* @return array Array of ignored directories/files.
*/
function yoast_free_phpcompat_whitelist( $ignored ) {
$path = '*/' . basename( WPSEO_PATH ) . '/';
// To prevent: (warning) File has mixed line endings; this may cause incorrect results.
$ignored[] = $path . 'vendor/ruckusing/lib/Ruckusing/FrameworkRunner.php';
$ignored[] = $path . 'vendor_prefixed/ruckusing/lib/Ruckusing/FrameworkRunner.php';
/*
* To prevent: (error) Extension 'sqlite' is removed since PHP 5.4.
* Ignoring because we are not using the sqlite functionality.
*/
$ignored[] = $path . 'vendor/ruckusing/lib/Ruckusing/Adapter/Sqlite3/Base.php';
$ignored[] = $path . 'vendor_prefixed/ruckusing/lib/Ruckusing/Adapter/Sqlite3/Base.php';
return $ignored;
}