From 28ac0d1cf9d387c0726c82c8d779a7c8c95d238c Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Mon, 15 Dec 2025 22:00:04 +0000 Subject: [PATCH] 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 --- wp-import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-import.php b/wp-import.php index 8ad2a11..567643c 100644 --- a/wp-import.php +++ b/wp-import.php @@ -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.