Added --quiet flag to avoid warning appearance
Fix: Suppress Elementor update queue info message in WP-CLI by running 'wp elementor update db' or using '--quiet' flag
This commit is contained in:
+2
-2
@@ -9,10 +9,10 @@ if ( ! file_exists( 'wp-content/mysql.sql' ) ) {
|
||||
// Create backup of the current database.
|
||||
echo shell_exec( 'wp db export ./wp-content/mysql-backup.sql' );
|
||||
|
||||
$staging_domain = shell_exec( 'wp option get siteurl' );
|
||||
$staging_domain = shell_exec( 'wp option get siteurl --quiet' );
|
||||
echo shell_exec( 'wp db import ./wp-content/mysql.sql' );
|
||||
|
||||
$domain = shell_exec( 'wp option get siteurl' );
|
||||
$domain = shell_exec( 'wp option get siteurl --quiet' );
|
||||
$search_replace = trim( $domain ) . ' ' . trim( $staging_domain );
|
||||
|
||||
// Replace the domain in the database.
|
||||
|
||||
Reference in New Issue
Block a user