Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions vendor/wp-now/src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,20 @@ set_error_handler(function($severity, $message, $file, $line) {
add_filter( 'got_url_rewrite', '__return_true' );
`
);

fs.writeFile(
path.join( muPluginsPath, '0-deactivate-jetpack-modules.php' ),
`<?php
// Disable Jetpack Protect 2FA for local auto-login purpose
add_action( 'jetpack_active_modules', 'jetpack_deactivate_modules' );
function jetpack_deactivate_modules( $active ) {
if ( ( $index = array_search('protect', $active, true) ) !== false ) {
unset( $active[ $index ] );
}
return $active;
}
`
);
}

export function getWordPressVersionPath( wpVersion: string ) {
Expand Down