Skip to content

Commit

Permalink
Support --quiet flag for migrate command suggestion
Browse files Browse the repository at this point in the history
Using `WP_CLI::line()` bypasses the `--quiet` setting for WP CLI. We should respect it here.
  • Loading branch information
roborourke authored Jan 31, 2022
1 parent 086fb7f commit f426f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}

/**
Expand Down

0 comments on commit f426f54

Please sign in to comment.