From 598417cc007c8582e6ac0873c0487d4ab67ebdb5 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke Date: Mon, 31 Jan 2022 12:35:46 +0000 Subject: [PATCH] Support --quiet flag for migrate command suggestion Using `WP_CLI::line()` bypasses the `--quiet` setting for WP CLI. We should respect it here. --- inc/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/namespace.php b/inc/namespace.php index cd3f27b..cea979d 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -530,7 +530,7 @@ function hide_yoast_premium_social_previews() { * @return void */ function suggest_migrations() : void { - WP_CLI::line( WP_CLI::colorize( '%yTo migrate SEO data for Altis v7 or earlier to Yoast SEO run `wp altis migrate-seo`%n' ) ); + WP_CLI::log( WP_CLI::colorize( '%yTo migrate SEO data for Altis v7 or earlier to Yoast SEO run `wp altis migrate-seo`%n' ) ); } /**