Browse Source

Update 'wp-import.php'

main
Roman Axelrod 4 months ago
parent
commit
3b2137597d
  1. 11
      wp-import.php

11
wp-import.php

@ -16,15 +16,15 @@ $domain = shell_exec( 'wp option get siteurl' );
$search_replace = trim( $domain ) . ' ' . trim( $staging_domain );
// Replace the domain in the database.
echo "--------------------------------";
echo "Performing search and replace:";
echo "wp search-replace $search_replace --all-tables";
echo "--------------------------------";
echo "-------------------------------- \n";
echo "Performing search and replace: \n";
echo "wp search-replace $search_replace --all-tables \n";
echo "-------------------------------- \n";
try {
echo shell_exec( "wp search-replace $search_replace --all-tables" );
} catch ( Exception $e ) {
echo "Error: " . $e->getMessage();
echo "Error: " . $e->getMessage() . " \n";
exit( 1 );
}
@ -72,6 +72,7 @@ $plugins = [
'neverbounce-hubspot',
'hotjar',
'insert-headers-and-footers',
'better-wp-security',
];
foreach ( $plugins as $plugin ) {

Loading…
Cancel
Save