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 );
|
$search_replace = trim( $domain ) . ' ' . trim( $staging_domain );
|
||||||
|
|
||||||
// Replace the domain in the database.
|
// Replace the domain in the database.
|
||||||
echo "--------------------------------";
|
echo "-------------------------------- \n";
|
||||||
echo "Performing search and replace:";
|
echo "Performing search and replace: \n";
|
||||||
echo "wp search-replace $search_replace --all-tables";
|
echo "wp search-replace $search_replace --all-tables \n";
|
||||||
echo "--------------------------------";
|
echo "-------------------------------- \n";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
echo shell_exec( "wp search-replace $search_replace --all-tables" );
|
echo shell_exec( "wp search-replace $search_replace --all-tables" );
|
||||||
} catch ( Exception $e ) {
|
} catch ( Exception $e ) {
|
||||||
echo "Error: " . $e->getMessage();
|
echo "Error: " . $e->getMessage() . " \n";
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,6 +72,7 @@ $plugins = [
|
|||||||
'neverbounce-hubspot',
|
'neverbounce-hubspot',
|
||||||
'hotjar',
|
'hotjar',
|
||||||
'insert-headers-and-footers',
|
'insert-headers-and-footers',
|
||||||
|
'better-wp-security',
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ( $plugins as $plugin ) {
|
foreach ( $plugins as $plugin ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user