Browse Source

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
main
Roman Axelrod 2 months ago
parent
commit
28ac0d1cf9
  1. 4
      wp-import.php

4
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.

Loading…
Cancel
Save