Update 'wp-import.php'
This commit is contained in:
+6
-5
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user